Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit cfe47ff

Browse files
committed
fix(@nguniversal/express-engine): update schematic to be noPropertyAccessFromIndexSignature compliant
When usign the CLI in strict mode `noPropertyAccessFromIndexSignature` typescript option will be enabled which forces index signatures to be accessed with square brackets. (cherry picked from commit 60b1c07)
1 parent 6819d0c commit cfe47ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/express-engine/schematics/install/files/__serverFileName@stripTsExtension__.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function app(): express.Express {
3838
}
3939

4040
function run(): void {
41-
const port = process.env.PORT || <%= serverPort %>;
41+
const port = process.env['PORT'] || <%= serverPort %>;
4242

4343
// Start up the Node server
4444
const server = app();

0 commit comments

Comments
 (0)