mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-01-09 21:46:48 -06:00
PR-934611: fixing the test fail.
This commit is contained in:
parent
af983a8032
commit
f15f6c3a20
@ -2,18 +2,18 @@ import * as dotenv from 'dotenv';
|
|||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
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(','),
|
|
||||||
PORT: process.env.PORT,
|
|
||||||
};
|
|
||||||
|
|
||||||
export const deFaultValues = {
|
export const deFaultValues = {
|
||||||
ENV: 'production',
|
ENV: 'production',
|
||||||
GRAPHIQL: 'false',
|
GRAPHIQL: 'false',
|
||||||
PLAYGROUND_GRAPHQL: 'false',
|
PLAYGROUND_GRAPHQL: 'false',
|
||||||
WHITELIST_URLS: 'http://localhost',
|
WHITELIST_URLS: 'http://localhost',
|
||||||
PORT: 4000,
|
PORT: 4000,
|
||||||
}
|
};
|
||||||
|
|
||||||
|
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,
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user