Comments (4)
Hi @dangtony98,
I am taking a jab at this and I would like to take a different approach.
Instead of going for runtime access (which will prevent optimization of built frontend package), let's remove the dependency. From the current frontend codebase, I see these:
- Only the environment variable
NEXT_PUBLIC_WEBSITE_URL
is actually being used - One is in
next.config.js
for CSP and we can useself
value for that - you already merged the change re: this - Another is usage as
PATH
const
I prepared a pull request to fulfill item 3 above. If that is fine, then the only remaining thing is to actually use the frontend image, no need for environment variables at all.
Unless you see the need for environment variable at runtime? In that case, we'll be forced to use a different approach, but that will prevent frontend build optimization. Until then, maybe my approach here will suffice?
from infisical.
Hey egi!
I checked the PR and it looked good to me! — Good optimizations to frontend by removing PATH
and NEXT_PUBLIC_WEBSITE_URL
.
That said, I think there's still one variable that's NEXT_PUBLIC_TELEMETRY_ENABLED
that's being used on the frontend for people to opt-out of telemetry at run-time; the remaining variables can be baked into the image build for sure.
from infisical.
Oh, you're right!
In that case, I will continue on finding a solution to this. 🙇
from infisical.
Solution has been accepted and merged.
from infisical.
Related Issues (20)
- Propagate secret reference changes to downstream triggers HOT 1
- CLI Login and Set Process Does Not Work Per Documentation HOT 3
- Manual trigger for update resync in Kubernetes operator
- Document of installation without docker HOT 1
- Deploying with helm error when npm run migration. HOT 2
- Issue on docs HOT 1
- better error handling for `infisical secret set`
- Make secretNamespace optional
- Error while download CLI - `402 Payment required` HOT 3
- Make Project ID optional when using machine ID with `.infisical.json`
- Ability to write secrets in Ansible collection
- --path erroring out in secrets subcommand HOT 2
- Automating configuration with Infrastructure as Code HOT 1
- Error: connect ECONNREFUSED 127.0.0.1:587 HOT 2
- can't install infisical cli on alpine HOT 3
- Helm Repository is Unavailable HOT 3
- Standard Gitlab integration from self-hosted Infisical to self-hosted Gitlab gives error 400 HOT 4
- Integration Vercel 400 error on self-hosted infisical HOT 2
- Potential Env removal from Docs? HOT 3
- If I use the Secret API, WorkspaceSlug will not be able to find the Secret. HOT 5
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 infisical.