diff options
Diffstat (limited to 'src/dev.ts')
-rw-r--r-- | src/dev.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev.ts b/src/dev.ts index 8c4140259..8f93aabf6 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -8,7 +8,6 @@ import { defaultLogDestination, error, parseError } from './logger.js'; import { createRuntime } from './runtime.js'; const hostname = '127.0.0.1'; -const port = 3000; // Disable snowpack from writing to stdout/err. snowpackLogger.level = 'silent'; @@ -65,6 +64,7 @@ export default async function dev(astroConfig: AstroConfig) { } }); + const port = astroConfig.devOptions.port; server.listen(port, hostname, () => { // eslint-disable-next-line no-console console.log(`Server running at http://${hostname}:${port}/`); |