Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Feb 26, 2025
1 parent 4a43c4b commit 2cdeaea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/astro/src/cli/dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'],
],
},
Expand Down
5 changes: 4 additions & 1 deletion packages/astro/src/cli/preview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'],
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/preview/static-preview-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
});
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types/public/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export type ServerConfig = {
*/
port?: number;


/**
* @name server.allowedHosts
* @type {string[] | true}
Expand All @@ -81,7 +80,7 @@ export type ServerConfig = {
*
* ```js
* {
* server: {
* server: {
* allowedHosts: ['staging.example.com', 'qa.example.com']
* }
* }
Expand Down

0 comments on commit 2cdeaea

Please sign in to comment.