diff --git a/.changeset/short-lemons-fold.md b/.changeset/short-lemons-fold.md new file mode 100644 index 0000000000..a0223f699c --- /dev/null +++ b/.changeset/short-lemons-fold.md @@ -0,0 +1,5 @@ +--- +'@astrojs/node': patch +--- + +fix port in standalone mode diff --git a/packages/integrations/node/src/standalone.ts b/packages/integrations/node/src/standalone.ts index e0435a2eab..18cf8a2a5c 100644 --- a/packages/integrations/node/src/standalone.ts +++ b/packages/integrations/node/src/standalone.ts @@ -35,7 +35,7 @@ export function getResolvedHostForHttpServer(host: string | boolean) { } export default function startServer(app: NodeApp, options: Options) { - const port = process.env.PORT ? Number(process.env.port) : options.port ?? 8080; + const port = process.env.PORT ? Number(process.env.PORT) : options.port ?? 8080; const { client } = resolvePaths(options); const handler = middleware(app);