From 9ef27473bf7f33c3b334a75f17c811dd9498c58c Mon Sep 17 00:00:00 2001 From: Princesseuh <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:39:19 +0100 Subject: [PATCH 1/2] feat: makes it so astro add does not set output server by default --- packages/astro/src/cli/add/index.ts | 4 ---- 1 file changed, 4 deletions(-) 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' }); From 35f5fc1de91c8f093ea51aa723afa1a970eb382e Mon Sep 17 00:00:00 2001 From: Princesseuh <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:43:18 +0100 Subject: [PATCH 2/2] chore: changeset --- .changeset/smooth-panthers-heal.md | 5 +++++ 1 file changed, 5 insertions(+) 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