Environment variables
Settings your app reads when it starts, kept outside the code so secrets never end up in it.
- Where you see it
- The “Environment variables” screen in Lovable or Vercel, or a
.envfile with lines likeSUPABASE_URL=… - What goes wrong
- The key is pasted into the code, then pushed to a public repo.
- It works on your machine but breaks after deploy: the variable was never set there.
- A secret key is used in the browser, where anyone can read it.