Angular · Junior · Question 65 of 75
Where do you keep different API URLs for development and production builds?
- ✓Correct answer: In environment files replaced at build time via
fileReplacements(or another build-time config) - 2In
localStorage - 3Hard-coded in each service
Explanation
Anything in the frontend bundle is public, so environment files must contain only non-secret settings like API base URLs.