Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -3,7 +3,7 @@ import { AppModule } from './modules/app/app.module'; | @@ -3,7 +3,7 @@ import { AppModule } from './modules/app/app.module'; | ||
| 3 | 3 | ||
| 4 | async function bootstrap() { | 4 | async function bootstrap() { |
| 5 | const app = await NestFactory.create(AppModule); | 5 | const app = await NestFactory.create(AppModule); |
| 6 | - // app.enableCors({ origin: String(process.env.ALLOWED_ORIGINS).split(',') }); | ||
| 7 | - await app.listen(3000); | 6 | + app.enableCors({ origin: String(process.env.ALLOWED_ORIGINS).split(',') }); |
| 7 | + await app.listen(Number(process.env.API_PORT)); | ||
| 8 | } | 8 | } |
| 9 | bootstrap(); | 9 | bootstrap(); |
Please
register
or
login
to post a comment