From f15f6c3a201f292d0b19afdbefe57499232d5c52 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 30 Aug 2022 18:05:06 +0000 Subject: [PATCH] PR-934611: fixing the test fail. --- config/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config/index.ts b/config/index.ts index 2165b15..fecfa27 100644 --- a/config/index.ts +++ b/config/index.ts @@ -2,18 +2,18 @@ import * as dotenv from 'dotenv'; 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 = { ENV: 'production', GRAPHIQL: 'false', PLAYGROUND_GRAPHQL: 'false', WHITELIST_URLS: 'http://localhost', PORT: 4000, -} \ No newline at end of file +}; + +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, +};