Skip to content

Environment variables ​

Set these in your hosting provider (Vercel) and, for local work, in a .env file based on .env.example. Do not commit real values.

VariablePurposeExample
VITE_SUPABASE_URLProject URL, without a trailing slash or /rest/v1https://xxxx.supabase.co
VITE_SUPABASE_ANON_KEYPublishable (anon) keysb_publishable_...
VITE_APP_NAMEApp name shown in the appStaff Manager
VITE_APP_URLPublic address. Listed for reference. Version 1.0.0 does not read ithttps://staff.rozfiber.com
VITE_DAILY_KHATA_URLLink to Daily Khata Prohttps://www.rozfiber.com
VITE_ADVANCED_CALCULATOR_URLDaily Khata Pro calculator link. If empty, the button is hiddenhttps://www.rozfiber.com/calculator
VITE_SUPPORT_EMAILSupport email shown in the appsupport@rozfiber.com
VITE_ENABLE_GOOGLE_LOGINShow Google sign-in. true or falsefalse
VITE_ENABLE_LOCAL_MODEAllow use without an account. true or falsetrue

Keys ​

  • The publishable (anon) key is designed to be public. The database rules protect the data.
  • The secret / service_role key must never be used in the app or committed.

After changing a variable ​

Redeploy so the new value is built into the app.

Official Documentation Hub for Rozfiber Apps & Platforms