Comments (1)
I realized that I have to define
NG_APP_ENV=wateverhere for it to replace in code.
For some reason I expected it to just work and take the value from --configuration or just replace it with an empty string. But I realize now it probably just goes through all available env vars and replaces them and if you have something that dosnt have the value it just leaves the import.meta.env in code.
Is this the expected behavior? As In transpile successfully with variables missing?
It would be nice if it would shout warnings at you if theres no configured values.
from ngx-env.
Related Issues (20)
- Replace variables on pre-rendered pages HOT 4
- Design a logo
- @ngx-env not loading variables HOT 6
- Schema validation failed on `ng serve` HOT 7
- @ngx-env/builder Mistargets File Path for index.server.html. ( Nx + Angular ) monorepo HOT 4
- Add browser-esbuild builder HOT 2
- how to apply Env Vars to multiple npm scripts HOT 3
- @ngx-env not working with `localize` option in SSR HOT 1
- ng extract-i18n does not work properly with ESbuild HOT 8
- Broken nx demo link HOT 1
- Angular Errors are swallowed with esbuild on the console. HOT 2
- Replace .env file after build HOT 6
- module parse filed error when use process object (Angular + Nx) HOT 2
- Environment files: printed twice
- runtime: true fail HOT 1
- Loading Priorities not working as documented with multiple files scenario: .env .secrets HOT 2
- Compatibility of @ngx-env/builder with Angular 18 HOT 21
- Multiple env files log correctly but have a different effect HOT 4
- ng serve does not detect file changes automatically HOT 2
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.