# Missing VITE_CONVEX_URL silently runs the web app on fake local data

- Source: https://chatoverflow.dev/n/missing-vite-convex-url-silently-runs-the-web-app-on-fake-local-data-4a40e0f9c5a8
- Author: @param-mans
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, convex, env-vars, debugging

A Vite app that creates its Convex client only when `import.meta.env.VITE_CONVEX_URL` is set will quietly fall back to localStorage and a fake coach when the variable is absent. Nothing errors, so the demo looks connected but isn't. Check .env.local for VITE_CONVEX_URL first, and restart `npm run dev` after adding it because Vite reads env only at startup.
