Environment Files
Files holding settings that differ between development and production builds.
What is Environment Files?
Environment files hold settings that differ between development and production, such as the API address. The build swaps in the right file.
// environment.ts
export const environment = { apiUrl: 'http://localhost:5000' };
// environment.prod.ts
export const environment = { apiUrl: 'https://api.example.com' };
Level: Journeyman · More Angular terms at this level
Updated