add flags for config
This commit is contained in:
parent
0c9dcfed31
commit
86e91b1f12
15
apps/explorer/src/app/lib/flags.ts
Normal file
15
apps/explorer/src/app/lib/flags.ts
Normal 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'] || ''),
|
||||
};
|
Loading…
Reference in New Issue
Block a user