diff options
author | 2021-07-20 07:38:55 +0300 | |
---|---|---|
committer | 2021-07-19 21:38:55 -0700 | |
commit | 0e761b9bdf7606693298956b021886a3470f0cc2 (patch) | |
tree | cee6d6a4e4c9ce9c908256e60726859aae23d0f7 /packages/create-astro/src | |
parent | 7ad7e16633b23fc7bcd3e59737f82bb73eac4986 (diff) | |
download | astro-0e761b9bdf7606693298956b021886a3470f0cc2.tar.gz astro-0e761b9bdf7606693298956b021886a3470f0cc2.tar.zst astro-0e761b9bdf7606693298956b021886a3470f0cc2.zip |
Add ability to specify hostname in devOptions (#733)
* Add ability to specify hostname in devOptions
* Update packages/astro/test/config-hostname.test.js
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r-- | packages/create-astro/src/config.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/create-astro/src/config.ts b/packages/create-astro/src/config.ts index 40e6653a0..31b7acc20 100644 --- a/packages/create-astro/src/config.ts +++ b/packages/create-astro/src/config.ts @@ -10,8 +10,9 @@ export const createConfig = ({ renderers }: { renderers: string[] }) => { sitemap: true, // Generate sitemap (set to "false" to disable) }, devOptions: { - // port: 3000, // The port to run the dev server on. - // tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js' + // hostname: 'localhost', // The hostname to run the dev server on. + // port: 3000, // The port to run the dev server on. + // tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js' },`, ` renderers: ${JSON.stringify(renderers, undefined, 2) .split('\n') |