undefined might come as a string (#1196)
so a hack to check and cast it to a real undefined Co-authored-by: Álvaro Manera <amanera@cartodb.com>
This commit is contained in:
parent
15135b475c
commit
c792421687
@ -328,8 +328,8 @@ var config = {
|
|||||||
useProfiler: false,
|
useProfiler: false,
|
||||||
serverMetadata: {
|
serverMetadata: {
|
||||||
cdn_url: {
|
cdn_url: {
|
||||||
http: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTP || 'api.cartocdn.com',
|
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 || 'cartocdn.global.ssl.fastly.net'
|
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
|
// Settings for the health check available at /health
|
||||||
|
Loading…
Reference in New Issue
Block a user