We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fb41a4 commit 517230fCopy full SHA for 517230f
_examples/simple-express-rest-api/src/server.application.ts
@@ -35,7 +35,7 @@ export const server = new DandiApplication({
35
HttpPipelineModule.cors({
36
allowOrigin: [/localhost:\d{2,5}/, /127\.0\.0\1:\d{2,5}/],
37
}),
38
- MvcExpressModule.config({ port: parseInt(process.env.PORT, 10) || DEFAULT_SERVER_PORT }),
+ MvcExpressModule.config({ port: Number(process.env.PORT) || DEFAULT_SERVER_PORT }),
39
MvcViewModule.engine('ejs', EjsViewEngine.config({ cache: false })).engine(
40
'pug',
41
PugViewEngine.config({ cache: false }),
0 commit comments