diff options
author | 2022-10-18 13:01:21 +0530 | |
---|---|---|
committer | 2022-10-18 15:31:21 +0800 | |
commit | df4d84610ad2b543a37cb3bcac9887bfef0b8994 (patch) | |
tree | 30ff689229cff2002ddcd69f7a800aa99a39b088 | |
parent | ef0c5431631665c9f6648ee5daee65a3ebf8e9ee (diff) | |
download | astro-df4d84610ad2b543a37cb3bcac9887bfef0b8994.tar.gz astro-df4d84610ad2b543a37cb3bcac9887bfef0b8994.tar.zst astro-df4d84610ad2b543a37cb3bcac9887bfef0b8994.zip |
Fix port env in standalone mode (#5111)
Diffstat (limited to '')
-rw-r--r-- | .changeset/short-lemons-fold.md | 5 | ||||
-rw-r--r-- | packages/integrations/node/src/standalone.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/short-lemons-fold.md b/.changeset/short-lemons-fold.md new file mode 100644 index 000000000..a0223f699 --- /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 e0435a2ea..18cf8a2a5 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); |