Repository navigation
Environment Variables and Secrets: Build Time vs Run Time #16
julia-kafarska
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Full tutorial with screenshots: https://blog.light-cloud.com/tutorials/environment-variables-and-secrets
How environment variables work on Light Cloud: static sites read VITE_ variables at build time and bake them into public JavaScript, containers read variables at run time. Where secrets are safe, verified on a live site.
Level: Beginner · Time: about 15 minutes · Plan: Free · Stack: Vite, Environment variables, Secrets
Steps
Source code: https://github.com/light-cloud-com/tutorial-env-vars
Live demo: https://main-tutorial-env-vars-examples.light-cloud.io
Questions, problems with a step, or a screen that no longer matches the console? Reply here. Every tutorial is re-run on the live platform before it is published, and this thread is where fixes get discussed.
All reactions