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'];
export default {
assets: truthy.includes(env['NX_EXPLORER_ASSETS'] || ''),
genesis: truthy.includes(env['NX_EXPLORER_GENESIS'] || ''),
governance: truthy.includes(env['NX_EXPLORER_GOVERNANCE'] || ''),
markets: truthy.includes(env['NX_EXPLORER_MARKETS'] || ''),
assets: truthy.includes(process.env['NX_EXPLORER_ASSETS'] || ''),
genesis: truthy.includes(process.env['NX_EXPLORER_GENESIS'] || ''),
governance: truthy.includes(process.env['NX_EXPLORER_GOVERNANCE'] || ''),
markets: truthy.includes(process.env['NX_EXPLORER_MARKETS'] || ''),
networkParameters: truthy.includes(
env['NX_EXPLORER_NETWORK_PARAMETERS'] || ''
process.env['NX_EXPLORER_NETWORK_PARAMETERS'] || ''
),
parties: truthy.includes(env['NX_EXPLORER_PARTIES'] || ''),
validators: truthy.includes(env['NX_EXPLORER_VALIDATORS'] || ''),
parties: truthy.includes(process.env['NX_EXPLORER_PARTIES'] || ''),
validators: truthy.includes(process.env['NX_EXPLORER_VALIDATORS'] || ''),
};