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.
This commit is contained in:
Mathis H (Avnyr) 2024-10-17 10:26:59 +02:00
parent ed1defb1da
commit 4f40ef371c
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -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);