improve: port management

This commit is contained in:
2026-05-14 13:01:37 +02:00
parent 3d81db7d53
commit 1a41621d0f
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -84,7 +84,7 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"port": 4200
"port": 3000
},
"configurations": {
"production": {
+1 -1
View File
@@ -10,4 +10,4 @@ services:
dns:
- 192.168.100.2
ports:
- ${MAIN_PORT}:${MAIN_PORT}
- ${MAIN_PORT}:3000
+1 -2
View File
@@ -38,8 +38,7 @@ app.get('**', (req: Request, res: Response, next: NextFunction): void => {
});
if (isMainModule(import.meta.url)) {
const envPort: number = Number.parseInt(process.env['MAIN_PORT'] ?? '', 10);
const port: number = Number.isFinite(envPort) ? envPort : 3000;
const port: number = 3000;
app.listen(port, (): void => {
console.log(`Listening on port ${port}`);