chore: replaced hardcoded values with env variables in app.module.ts, main.ts and utils.ts
This commit is contained in:
@@ -8,6 +8,10 @@ import { AuthModule } from './auth/auth.module';
|
||||
@Module({
|
||||
imports: [
|
||||
GraphQLModule.forRoot<ApolloDriverConfig>({
|
||||
cors: process.env.PRODUCTION !== 'true' && {
|
||||
origin: ['http://localhost:3170', 'http://localhost:3000'],
|
||||
credentials: true,
|
||||
},
|
||||
playground: process.env.PRODUCTION !== 'true',
|
||||
debug: process.env.PRODUCTION !== 'true',
|
||||
autoSchemaFile: true,
|
||||
|
||||
Reference in New Issue
Block a user