fix process error

This commit is contained in:
Dexter 2022-03-08 11:36:17 +00:00 committed by Dexter Edwards
parent c1c12d8c70
commit 20a06b6478

View File

@ -1,15 +1,13 @@
const { env } = process;
const truthy = ['1', 'true']; const truthy = ['1', 'true'];
export default { export default {
assets: truthy.includes(env['NX_EXPLORER_ASSETS'] || ''), assets: truthy.includes(process.env['NX_EXPLORER_ASSETS'] || ''),
genesis: truthy.includes(env['NX_EXPLORER_GENESIS'] || ''), genesis: truthy.includes(process.env['NX_EXPLORER_GENESIS'] || ''),
governance: truthy.includes(env['NX_EXPLORER_GOVERNANCE'] || ''), governance: truthy.includes(process.env['NX_EXPLORER_GOVERNANCE'] || ''),
markets: truthy.includes(env['NX_EXPLORER_MARKETS'] || ''), markets: truthy.includes(process.env['NX_EXPLORER_MARKETS'] || ''),
networkParameters: truthy.includes( networkParameters: truthy.includes(
env['NX_EXPLORER_NETWORK_PARAMETERS'] || '' process.env['NX_EXPLORER_NETWORK_PARAMETERS'] || ''
), ),
parties: truthy.includes(env['NX_EXPLORER_PARTIES'] || ''), parties: truthy.includes(process.env['NX_EXPLORER_PARTIES'] || ''),
validators: truthy.includes(env['NX_EXPLORER_VALIDATORS'] || ''), validators: truthy.includes(process.env['NX_EXPLORER_VALIDATORS'] || ''),
}; };