Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Enable prefixing keys not present on build time. #160

Open
LuisMesquita opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@LuisMesquita
Copy link

Hi, thank you for the work on building this package, super helpful.

My current company follows the Build once, deploy many philosophy, and your package is invaluable. But we faced one issue. During build time during our CI pipeline, we don't have any .env file, as this is injected later through Kubernetes. This causes the makePublicVar to skip our later-on inject variables.

I know there are ways to work around this, like passing a list on env when running the yarn build, TO_BE_INJECT_ENV= yarn build, or having a dump .env file on the CI environment. But this goes against our guidelines.

So I have opened this PR with a proposal to add a new makePublicVar option to skip or not empty variables. Let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant