I seem to have tried every which way variation of the env-cmd command but cannot work out why I can't access the variables
I originally followed this tutorial https://www.youtube.com/watch?v=3SH5AQsHypA
but the docs have since changed and so you need to use the command -e unlike the video so my package.json command reads...
"dev-server": "env-cmd -e dev webpack-dev-server",
any my .env-cmdrc reads...
{
"dev" : {
"BASE_URL" : "development"
},
"qa" : {
"BASE_URL" : "qa"
},
"prod" : {
"BASE_URL" : "prod"
}
}
But I just cannot access process.env.BASE_URL for some reason. Any help is greatly appreciated