Skip to content

Commit

Permalink
fix: update "PORT" configuration for local environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhd-hi committed Feb 14, 2025
1 parent 6f5de3e commit 0ffeff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NODE_ENV=development

PORT=3000
PORT=3001

DATABASE_URL="postgresql://postgres@localhost:5432/planifetsDB?schema=public"

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function bootstrap() {
.setTitle('PlanifÉTS API')
.setExternalDoc('JSON API Documentation', '/api-json')
.setVersion('1.0')
.addServer('http://localhost:3000/', 'Local environment')
.addServer(`http://localhost:${process.env.PORT}/`, 'Local environment')
.build();
const document = SwaggerModule.createDocument(app, swaggerConfig);
const swaggerOptions = {
Expand Down

0 comments on commit 0ffeff4

Please sign in to comment.