Skip to content

Commit

Permalink
feat: makes it so astro add does not set output server by default (#1…
Browse files Browse the repository at this point in the history
…2071)

* feat: makes it so astro add does not set output server by default

* chore: changeset
  • Loading branch information
Princesseuh authored Sep 25, 2024
1 parent 7968eab commit 61d248e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-panthers-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

`astro add` no longer automatically sets `output: 'server'`. Since the default value of output now allows for server-rendered pages, it no longer makes sense to default to full server builds when you add an adapter
4 changes: 0 additions & 4 deletions packages/astro/src/cli/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,6 @@ export function setAdapter(
});
}

if (!config.output) {
config.output = 'server';
}

switch (adapter.id) {
case 'node':
config.adapter = builders.functionCall(adapterId, { mode: 'standalone' });
Expand Down

0 comments on commit 61d248e

Please sign in to comment.