mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-01-09 21:46:48 -06:00
12 lines
351 B
TypeScript
12 lines
351 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,
|
||
|
whiteList: process.env.WHITELIST_URLS ? process.env.WHITELIST_URLS.split(',') : [
|
||
|
'http://localhost'
|
||
|
],
|
||
|
port: process.env.PORT || 4000,
|
||
|
};
|