summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/cli/dev/index.ts5
-rw-r--r--packages/astro/src/cli/preview/index.ts5
-rw-r--r--packages/astro/src/core/preview/static-preview-server.ts2
-rw-r--r--packages/astro/src/types/public/config.ts3
4 files changed, 10 insertions, 5 deletions
diff --git a/packages/astro/src/cli/dev/index.ts b/packages/astro/src/cli/dev/index.ts
index d10d00059..1ff7bbdea 100644
--- a/packages/astro/src/cli/dev/index.ts
+++ b/packages/astro/src/cli/dev/index.ts
@@ -20,7 +20,10 @@ export async function dev({ flags }: DevOptions) {
['--host <custom-address>', `Expose on a network IP address at <custom-address>`],
['--open', 'Automatically open the app in the browser on server start'],
['--force', 'Clear the content layer cache, forcing a full rebuild.'],
- ['--allowed-hosts', 'Specify a comma-separated list of allowed hosts or allow any hostname.'],
+ [
+ '--allowed-hosts',
+ 'Specify a comma-separated list of allowed hosts or allow any hostname.',
+ ],
['--help (-h)', 'See all available flags.'],
],
},
diff --git a/packages/astro/src/cli/preview/index.ts b/packages/astro/src/cli/preview/index.ts
index 9e0b88e11..b7af0ea1a 100644
--- a/packages/astro/src/cli/preview/index.ts
+++ b/packages/astro/src/cli/preview/index.ts
@@ -18,7 +18,10 @@ export async function preview({ flags }: PreviewOptions) {
['--host', `Listen on all addresses, including LAN and public addresses.`],
['--host <custom-address>', `Expose on a network IP address at <custom-address>`],
['--open', 'Automatically open the app in the browser on server start'],
- ['--allowed-hosts', 'Specify a comma-separated list of allowed hosts or allow any hostname.'],
+ [
+ '--allowed-hosts',
+ 'Specify a comma-separated list of allowed hosts or allow any hostname.',
+ ],
['--help (-h)', 'See all available flags.'],
],
},
diff --git a/packages/astro/src/core/preview/static-preview-server.ts b/packages/astro/src/core/preview/static-preview-server.ts
index 13798ef99..814566161 100644
--- a/packages/astro/src/core/preview/static-preview-server.ts
+++ b/packages/astro/src/core/preview/static-preview-server.ts
@@ -36,7 +36,7 @@ export default async function createStaticPreviewServer(
port: settings.config.server.port,
headers: settings.config.server.headers,
open: settings.config.server.open,
- allowedHosts: settings.config.server.allowedHosts
+ allowedHosts: settings.config.server.allowedHosts,
},
plugins: [vitePluginAstroPreview(settings)],
});
diff --git a/packages/astro/src/types/public/config.ts b/packages/astro/src/types/public/config.ts
index cbb1cfe5f..b9cf3d2b3 100644
--- a/packages/astro/src/types/public/config.ts
+++ b/packages/astro/src/types/public/config.ts
@@ -68,7 +68,6 @@ export type ServerConfig = {
*/
port?: number;
-
/**
* @name server.allowedHosts
* @type {string[] | true}
@@ -81,7 +80,7 @@ export type ServerConfig = {
*
* ```js
* {
- * server: {
+ * server: {
* allowedHosts: ['staging.example.com', 'qa.example.com']
* }
* }