Replies: 1 comment 2 replies
-
Hi there! Given that env variables are statically replaced in your built code, the only way to have "runtime" access to env variables, is to build in the server/environment that has the variables. In your case, you would need to build in the same container that you plan to deploy. Feel free to ask follow-up questions Moving to discussions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for this package. I am using it successfully to access env vars to a vite-built app which then gets served by nginx in a Docker environment. To comply with 12factorapp principles I want to be able to access the env vars at runtime not just at build time. Have you found an approach for that either using your package or another?
Beta Was this translation helpful? Give feedback.
All reactions