We have a xxx.json which describes which data access layer our app has to use:
{
"service_base": "https://xxxx.com",
"resource_base": "/build/resources",
"template_base": "build/templates/dir"
}
The Gulp build will use this file to build the application. Now we are using different dal's so we want to use an environment variable to pass with the gulp build command. How do we have to obtain this?
I read it's not possible to declare env vars in JSON. We tried something as this but didn't work:
{
"service_base": process.env.DAL_ENV,
"resource_base": "/build/resources",
"template_base": "build/templates/dir"
}
And trying to pass the env var DAL_ENV to our gulp build
command.