In Angular, is there a way to switch environments while using runtime configuration and...

Discussão em 'Angular' iniciado por JL Gradley, Junho 19, 2025.

  1. JL Gradley

    JL Gradley Guest

    This question is just about developing with Angular in my local development.

    Currently, we're using build-time configuration. When developing locally on my laptop, if I need to point to any other environment other than the default, I could point to that environment (configured in the angular.json file) via the CLI -c switch.

    (i.e. ng serve -c qa)

    However, now we're moving to a runtime configuration approach where the environment info will be in a json file located in the asset folder. Is there any way, while using a runtime configuration approach, where a developer running locally can do something similar (other than copy/paste over the config in the asset folder)?

    Continue reading...

Compartilhe esta Página