mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-06-19 12:28:29 -06:00
PR-131297: removing express-graphql and use instead graphql-http, removing GraphiQL because of the lack of express middleware.
This commit is contained in:
@ -4,7 +4,6 @@ dotenv.config();
|
||||
|
||||
export const deFaultValues = {
|
||||
ENV: 'production',
|
||||
GRAPHIQL: 'false',
|
||||
PLAYGROUND_GRAPHQL: 'false',
|
||||
WHITELIST_URLS: 'http://localhost',
|
||||
PORT: 4000,
|
||||
@ -12,7 +11,6 @@ export const deFaultValues = {
|
||||
|
||||
export const config = {
|
||||
ENV: process.env.ENV,
|
||||
GRAPHIQL: process.env.GRAPHIQL === 'true' ? true : false,
|
||||
PLAYGROUND_GRAPHQL: process.env.PLAYGROUND_GRAPHQL === 'true' ? true : false,
|
||||
WHITELIST_URLS: process.env.WHITELIST_URLS ? process.env.WHITELIST_URLS.split(',') : deFaultValues.WHITELIST_URLS,
|
||||
PORT: process.env.PORT,
|
||||
|
Reference in New Issue
Block a user