You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have defined my environment variables in a .env file in the root of my project, and when I run 'ng add @ngx-env/builder,' an env.d.ts file gets created in the src folder. However, that file contains only an empty template. Is the env.d.ts supposed to be automatically populated with the variables defined in the .env file?
The text was updated successfully, but these errors were encountered:
To access your environment variables you should use process.env object.
The .env.d.ts is here only so that the compiler doesn't complain when you access process.env.NG_APP_SOME_VAR in your TypeScript code.
I have defined my environment variables in a .env file in the root of my project, and when I run 'ng add @ngx-env/builder,' an env.d.ts file gets created in the src folder. However, that file contains only an empty template. Is the env.d.ts supposed to be automatically populated with the variables defined in the .env file?
The text was updated successfully, but these errors were encountered: