Working on angular 8 project and I want to set two environments configuration, one for dev and other for prod :
dev
export const environment = {
production: false,
baseUrl: 'http://localhost:8000/api'
};
prod
export const environment = {
production: true,
baseUrl: 'https://serverurl/api/api'
};
the problem here is when I run npm run ng build --prod and test after that a register route on my api it doesn't work, on the other side it works when I test with postman !
apiin here :https://serverurl/api/api