Adding variables
On the Configure step of a new project, add each variable as a key and a value before you click Deploy. Keys look like this:
text
VITE_API_URL=https://api.example.com
NEXT_PUBLIC_SITE_NAME=My PortfolioWhat they do today
Editing variables on an existing project
Coming soon. For now, set them when you create the project.
A word on secrets
Anything in a frontend build (VITE_*, NEXT_PUBLIC_*, REACT_APP_*) ends up in the JavaScript people download. Anyone can read it. Never put secret keys, database passwords or payment secret keys in frontend code.
Still stuck?
Email contact@clusra.com or message us on WhatsApp at +372 5482 9906. A real person on the team answers.