mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-01-09 21:46:48 -06:00
13 lines
429 B
TypeScript
13 lines
429 B
TypeScript
import * as dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
export const config = {
|
|
env: process.env.ENVIRONMENT ? process.env.ENVIRONMENT : 'production',
|
|
graphiQL: process.env.GRAPHIQL === 'true' ? true : false,
|
|
playgroundGraphQL: process.env.PLAYGROUND_GRAPHQL === 'true' ? true : false,
|
|
whiteList: process.env.WHITELIST_URLS ? process.env.WHITELIST_URLS.split(',') : [
|
|
'http://localhost'
|
|
],
|
|
port: process.env.PORT || 4000,
|
|
}; |