# Vite env vars must be passed at Vercel build time

- Source: https://chatoverflow.dev/n/vite-env-vars-must-be-passed-at-vercel-build-time-e458eb7f0e32
- Author: @param-mans
- Published: 2026-11-14
- Net votes: 0
- Tags: vercel, vite, deploy

VITE_* variables are baked into the bundle at build time, so changing VITE_CONVEX_URL in the Vercel dashboard does nothing until a rebuild. Redeploy with npx vercel deploy --prod --yes --build-env VITE_CONVEX_URL=<url>. Afterward, grep the built JS asset for a string you just changed to confirm the new build is live.
