From 4f40ef371c22f376de0d3e01da23ead2be7269a6 Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 17 Oct 2024 10:26:59 +0200 Subject: [PATCH] Change default port from 3000 to 3333 Updated the main application file to change the default port used when the environment variable PORT is not set from 3000 to 3333. This ensures the backend operates on a different port to avoid conflicts with other services running on port 3000. --- apps/backend/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/main.ts b/apps/backend/src/main.ts index 98cbe8d..35b9100 100644 --- a/apps/backend/src/main.ts +++ b/apps/backend/src/main.ts @@ -16,7 +16,7 @@ async function bootstrap() { const globalPrefix = "api"; app.setGlobalPrefix(globalPrefix); app.use(helmet()); - const port = process.env.PORT || 3000; + const port = process.env.PORT || 3333; const document = SwaggerModule.createDocument(app, config); SwaggerModule.setup("api", app, document);