We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
withastro
Learn more about funding links in repositories.
Report abuse
1 parent bcf1923 commit 013fa87Copy full SHA for 013fa87
.changeset/bitter-rockets-pull.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': minor
3
4
+
5
+Handle server.allowedHosts when the value is true without attempting to push it into an array.
packages/astro/src/core/config/merge.ts
@@ -40,6 +40,11 @@ function mergeConfigRecursively(
40
}
41
42
43
+ // for server.allowedHosts, if the value is a boolean
44
+ if (key === 'allowedHosts' && rootPath === 'server' && typeof existing === 'boolean') {
45
+ continue;
46
+ }
47
48
if (key === 'data' && rootPath === 'db') {
49
// db.data can be a function or an array of functions. When
50
// merging, make sure they become an array
0 commit comments