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

Reading server environment variable in Angular at runtime

Discussão em 'Angular' iniciado por sandeep krishna, Novembro 25, 2025.

  1. I am new into angular. I have deployed an angular app into a docker container in aws. The app needs to connect to aws s3 bucket. I dont need to hardcode the aws key so I setup an environment variable in the docker. the angular is deployed such that the dist folder from the ng build is served by an nginx docker container.

    Is it possible to read the server environment variable by the angular once the contents from the dist folder is served into the server? like env function in php and nodejs

    Continue reading...

Compartilhe esta Página