-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add way to add env variables during runtime #5
Comments
Hi, A solution for me was to follow this tutorial that explain how to use dynamic variable via a built-in module : https://joyofcode.xyz/sveltekit-environment-variables I added this import on my server files : After that I can use my env var like this :
My problem was not been able to use docker compose env var ! It solved it. |
Any alternatives to React with Vite? |
In this project i used import-meta-env. great tool! you can see project example in this repository |
Now vite doesn't support adding env variables during runtime, but without that feature we cannot add env variables while creating docker container.
Related issues:
sveltejs/kit#3004
The text was updated successfully, but these errors were encountered: