summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <ematipico@users.noreply.github.com> 2025-02-26 10:35:49 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2025-02-26 10:35:49 +0000
commit2cdeaea64c847fb927f4c93ae62271057236a55d (patch)
tree3063bb5763d69ba7ec771e83c7d1514071fb1509
parent4a43c4b743affb78b1502801c797157b626c77a1 (diff)
downloadastro-2cdeaea64c847fb927f4c93ae62271057236a55d.tar.gz
astro-2cdeaea64c847fb927f4c93ae62271057236a55d.tar.zst
astro-2cdeaea64c847fb927f4c93ae62271057236a55d.zip
[ci] format
-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']
* }
* }