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:
@@ -16,7 +16,7 @@ async function bootstrap() {
|
|||||||
const globalPrefix = "api";
|
const globalPrefix = "api";
|
||||||
app.setGlobalPrefix(globalPrefix);
|
app.setGlobalPrefix(globalPrefix);
|
||||||
app.use(helmet());
|
app.use(helmet());
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3333;
|
||||||
|
|
||||||
const document = SwaggerModule.createDocument(app, config);
|
const document = SwaggerModule.createDocument(app, config);
|
||||||
SwaggerModule.setup("api", app, document);
|
SwaggerModule.setup("api", app, document);
|
||||||
|
|||||||
Reference in New Issue
Block a user