Skip to content

Commit 1572899

Browse files
chore: resolve conflicts, update to nullish coalescing
2 parents 7acea9b + f06b2da commit 1572899

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/application/files/js/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT || 3000);
77
}
88
bootstrap();

src/lib/application/files/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT ?? 3000);
77
}
88
bootstrap();

src/lib/sub-app/files/js/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT || 3000);
77
}
88
bootstrap();

src/lib/sub-app/files/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { <%= classify(name) %>Module } from './<%= name %>.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(<%= classify(name) %>Module);
6-
await app.listen(3000);
6+
await app.listen(process.env.port ?? 3000);
77
}
88
bootstrap();

0 commit comments

Comments
 (0)