DEV Community

Discussion on: Runtime Configurations with React

Collapse
 
amanchaudhary1998 profile image
AmanChaudhary1998 • Edited

Can you help me how to configure for dev, prod and staging at the runtime and how BUILD_ENV get the environment variable

ENV_CONFIG = ${node -p -e "JSON.stringify(require('./${CONFIG_BASE_PATH}/${BUILD_ENV}.config.json'))")