Commit 1cbb0837 authored by shahriar's avatar shahriar
Browse files

fix bug

parent e7592c49
...@@ -4,7 +4,7 @@ services: ...@@ -4,7 +4,7 @@ services:
prod: prod:
container_name: instagram-lottery container_name: instagram-lottery
image: instagram-lottery-prod:1.2.0 image: instagram-lottery-prod:1.5.0
build: build:
context: . context: .
target: production target: production
......
...@@ -3,12 +3,13 @@ import { AppModule } from './app.module'; ...@@ -3,12 +3,13 @@ import { AppModule } from './app.module';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
await app.listen(3000);
app.enableCors({ app.enableCors({
origin: '*', origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS', methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
credentials: true, credentials: true,
}) })
await app.listen(3000);
} }
bootstrap(); bootstrap();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment