Support Forums

Set Angular 12 environment variable from Netlify on Build stage

Good day,

I am trying to get the same Environment variables set for my netlify functions to my angular app. Does anybody know any proper way to do this? I don’t want to maintain local files or keep secrets locally/on repo. So the best scenario would be to get them from netlify UI

Thanks for the help!

Hi @javiseeker

In most instances you would use process.env.ENV_VAR_NAME to access environment variables, including in Angular.

For reference:

Hope this helps.