PR-131297: removing express-graphql and use instead graphql-http, removing GraphiQL because of the lack of express middleware.

This commit is contained in:
2023-03-23 20:17:50 +00:00
parent 8e5b26ce96
commit 6a3458e022
7 changed files with 239 additions and 316 deletions

View File

@ -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,