diff --git a/packages/frontend/ci/ParcelBundler.js b/packages/frontend/ci/ParcelBundler.js index 0ba056ec3f..9b37e85d87 100644 --- a/packages/frontend/ci/ParcelBundler.js +++ b/packages/frontend/ci/ParcelBundler.js @@ -10,7 +10,7 @@ const ENTRY_FILE_PATH = path.join(__dirname, '../src/index.html'); const WASM_PATH = path.join(__dirname, '../src/wasm/'); const SSL_PATH = path.join(__dirname, '../devServerCertificates/'); -const enableDebugLogging = !Config.DEBUG_BUILD ? true : Config.DEBUG_BUILD === 'true'; +const enableDebugLogging = Config.DEBUG_BUILD; class ParcelBundler { constructor({ diff --git a/packages/frontend/src/config/configFromEnvironment.js b/packages/frontend/src/config/configFromEnvironment.js index acb87633ee..ea7cc69449 100644 --- a/packages/frontend/src/config/configFromEnvironment.js +++ b/packages/frontend/src/config/configFromEnvironment.js @@ -2,6 +2,7 @@ import assert from "assert"; import Environments from "../../../../features/environments.json"; import { + envValIsSet, parseBooleanFromShell, parseCommaSeperatedStringAsArrayFromShell, } from "./envParsers"; @@ -64,9 +65,9 @@ module.exports = { SHOW_PRERELEASE_WARNING: parseBooleanFromShell( process.env.SHOW_PRERELEASE_WARNING ), - SMS_BLACKLIST: parseCommaSeperatedStringAsArrayFromShell( - process.env.SMS_BLACKLIST - ), + SMS_BLACKLIST: envValIsSet(process.env.SMS_BLACKLIST) ? parseCommaSeperatedStringAsArrayFromShell( + process.env.SMS_BLACKLIST.replace(/\s/g, "") + ) : undefined, STAKING_GAS_BASE: process.env.REACT_APP_STAKING_GAS_BASE, WHITELISTED_CONTRACTS: parseCommaSeperatedStringAsArrayFromShell( process.env.TOKEN_CONTRACTS diff --git a/packages/frontend/src/config/envParsers.js b/packages/frontend/src/config/envParsers.js index bb4778ffe4..635ec00344 100644 --- a/packages/frontend/src/config/envParsers.js +++ b/packages/frontend/src/config/envParsers.js @@ -12,7 +12,7 @@ const parseObjectFromShell = (envVal) => { }; const parseCommaSeperatedStringAsArrayFromShell = (envVal) => - envValIsSet(envVal) ? envVal.replace(/\s/g, "").split(",") : undefined; + envValIsSet(envVal) ? envVal.split(",") : undefined; module.exports = { envValIsSet,