0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

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
This commit is contained in:
Erika 2024-09-25 14:59:34 +02:00 committed by GitHub
parent 7968eabcfc
commit 61d248e581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -463,10 +463,6 @@ export function setAdapter(
}); });
} }
if (!config.output) {
config.output = 'server';
}
switch (adapter.id) { switch (adapter.id) {
case 'node': case 'node':
config.adapter = builders.functionCall(adapterId, { mode: 'standalone' }); config.adapter = builders.functionCall(adapterId, { mode: 'standalone' });