I'm using one file.json in asset's folder with my backend address file.json
{
"api": "https://backend.com/api"
}
then by a function I get the value from json:
export const GET_API = function () {
return require('../assets/file.json').api;
};
but when I build the project by ng build --prod
the value is static.
I'm looking one way to change the backend address on production