From 61d248e581a3bebf0ec67169813fc8ae4a2182df Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:59:34 +0200 Subject: [PATCH] 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 --- .changeset/smooth-panthers-heal.md | 5 +++++ packages/astro/src/cli/add/index.ts | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .changeset/smooth-panthers-heal.md diff --git a/.changeset/smooth-panthers-heal.md b/.changeset/smooth-panthers-heal.md new file mode 100644 index 000000000000..009db7e38e40 --- /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 7866f5a093ab..4f98b2d22f05 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' });