mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-06-19 12:28:29 -06:00
PR-448199:
Adding files from first version. Creating GraphQL server with their controllers and their models, squema and resolvers. Adding support to webpack and typescript.
This commit is contained in:
12
config/index.ts
Normal file
12
config/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
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,
|
||||
};
|
Reference in New Issue
Block a user