1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Need alternative approach to read environment variables on runtime in angular

Discussão em 'Angular' iniciado por Surya, Junho 11, 2025.

  1. Surya

    Surya Guest

    I have angular applications

    • lib (this contains __environments, assets and common css, services etc)
    • app_1

    both are run independently and lib is published into a npm package and increment the version with latest changes app_1 will consume the lib package in its package.json file and now i am Dockerizing both the apps

    I need help to serve env file to each environments, how to archive this?

    My requirement is to serve one docker image for app_1 that contains dist that is running on a pod, on run time i need to update the env file for different environments

    /-app
    -assets (__environments, fonts, images)
    -lib (languages)
    -app_1 (dist)

    Continue reading...

Compartilhe esta Página