Comments (1)
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 added some notes on the README section here https://github.com/chihab/ngx-env#good-practices, let me know if it not clear.
from ngx-env.
Related Issues (20)
- ERROR ReferenceError: process is not defined HOT 3
- Support of Angular 14 HOT 2
- Update cpy version to fix npm audit issues HOT 1
- process is not defined HOT 6
- Angular 11 - Error Variable 'process' must be of type 'Process' HOT 5
- Vulnerability due to [email protected] HOT 3
- Loading variables from parent folders HOT 2
- Incompatible with angular.json in Angular 15 HOT 4
- Make the mandatory NG_APP prefix configurable
- ESBuild Support? HOT 7
- Expose environment variables in `import.meta.env` HOT 1
- Impossible to use the project's builder with Angular Universal HOT 3
- env.local not working HOT 1
- Polyfills should be excluded from "expansion" process HOT 1
- The order of environment variables are important for k8s pods HOT 3
- Document multi prefix configuration using RegEx
- Specify path to .env file(s) HOT 2
- Set the environment with--configuration option HOT 5
- Property 'env' does not exist on type 'ImportMeta'. HOT 7
- Variable expansion in `.env` does not work any more HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-env.