Skip to content

Commit 517230f

Browse files
feat(examples/simple-rest-api-client): convert port with Number
1 parent 6fb41a4 commit 517230f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_examples/simple-express-rest-api/src/server.application.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const server = new DandiApplication({
3535
HttpPipelineModule.cors({
3636
allowOrigin: [/localhost:\d{2,5}/, /127\.0\.0\1:\d{2,5}/],
3737
}),
38-
MvcExpressModule.config({ port: parseInt(process.env.PORT, 10) || DEFAULT_SERVER_PORT }),
38+
MvcExpressModule.config({ port: Number(process.env.PORT) || DEFAULT_SERVER_PORT }),
3939
MvcViewModule.engine('ejs', EjsViewEngine.config({ cache: false })).engine(
4040
'pug',
4141
PugViewEngine.config({ cache: false }),

0 commit comments

Comments
 (0)