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:
parent
7968eabcfc
commit
61d248e581
2 changed files with 5 additions and 4 deletions
5
.changeset/smooth-panthers-heal.md
Normal file
5
.changeset/smooth-panthers-heal.md
Normal 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
|
|
@ -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' });
|
||||||
|
|
Loading…
Add table
Reference in a new issue