I am trying to build an angular 5 app. using ng build --prod command and I want to set the basic API-Url in the environment.prod.ts to a value dependent on my process.env variables
This is my file:devops
export const environment = {
production: true,
apiUrl: `${process.env.BASE_URL}` || 'http://localhost:8070/',
};
This error occurs when I try and build the application
ERROR in src/environments/environment.ts(7,16): error TS2304: Cannot find name 'process'.
Is there any way to set up API-Url w.r.t an env variable when building the application.