|
@@ -1,7 +1,10 @@
|
|
import { NestFactory } from '@nestjs/core'
|
|
import { NestFactory } from '@nestjs/core'
|
|
|
|
+import * as dotenv from 'dotenv'
|
|
|
|
|
|
import { AppModule } from './app.module'
|
|
import { AppModule } from './app.module'
|
|
|
|
|
|
|
|
+dotenv.config({ path: ['.env.local', '.env'] }).parsed
|
|
|
|
+
|
|
async function bootstrap() {
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule)
|
|
const app = await NestFactory.create(AppModule)
|
|
app.enableCors()
|
|
app.enableCors()
|