diff options
author | 2024-09-25 14:59:34 +0200 | |
---|---|---|
committer | 2024-09-25 14:59:34 +0200 | |
commit | 61d248e581a3bebf0ec67169813fc8ae4a2182df (patch) | |
tree | e44a2ac09333c24fd72782a46339297b036122f9 | |
parent | 7968eabcfca13396fc1884f802d5683ae18a4a15 (diff) | |
download | astro-61d248e581a3bebf0ec67169813fc8ae4a2182df.tar.gz astro-61d248e581a3bebf0ec67169813fc8ae4a2182df.tar.zst astro-61d248e581a3bebf0ec67169813fc8ae4a2182df.zip |
feat: makes it so astro add does not set output server by default (#12071)
* feat: makes it so astro add does not set output server by default
* chore: changeset
-rw-r--r-- | .changeset/smooth-panthers-heal.md | 5 | ||||
-rw-r--r-- | packages/astro/src/cli/add/index.ts | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/.changeset/smooth-panthers-heal.md b/.changeset/smooth-panthers-heal.md new file mode 100644 index 000000000..009db7e38 --- /dev/null +++ b/.changeset/smooth-panthers-heal.md @@ -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 diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts index 7866f5a09..4f98b2d22 100644 --- a/packages/astro/src/cli/add/index.ts +++ b/packages/astro/src/cli/add/index.ts @@ -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' }); |