From c792421687cabffe2f7de31fc8fcfeb75cf73921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= Date: Fri, 15 Jan 2021 10:44:05 +0100 Subject: [PATCH] undefined might come as a string (#1196) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so a hack to check and cast it to a real undefined Co-authored-by: Álvaro Manera --- config/environments/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/config.js b/config/environments/config.js index f0cdd6b4..e8438f29 100644 --- a/config/environments/config.js +++ b/config/environments/config.js @@ -328,8 +328,8 @@ var config = { useProfiler: false, serverMetadata: { cdn_url: { - http: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTP || 'api.cartocdn.com', - https: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTPS || 'cartocdn.global.ssl.fastly.net' + http: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTP === 'undefined' ? undefined : process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTP || 'api.cartocdn.com', + https: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTPS === 'undefined' ? undefined : process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTPS || 'cartocdn.global.ssl.fastly.net' } }, // Settings for the health check available at /health