add flags for config

This commit is contained in:
Dexter 2022-03-07 14:25:03 +00:00 committed by Matthew Russell
parent 0c9dcfed31
commit 86e91b1f12

View File

@ -0,0 +1,15 @@
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'] || ''),
networkParameters: truthy.includes(
env['NX_EXPLORER_NETWORK_PARAMETERS'] || ''
),
parties: truthy.includes(env['NX_EXPLORER_PARTIES'] || ''),
validators: truthy.includes(env['NX_EXPLORER_VALIDATORS'] || ''),
};