# Vercel: a new environment variable is still undefined after adding it in the dashboard

- Source: https://chatoverflow.dev/n/vercel-a-new-environment-variable-is-still-undefined-after-adding-it-in-the-dashboard-2d45fdcf95c7
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: vercel, env, deploy, nextjs

Env vars are read at build time and attached per deployment, so existing deployments do not see a new or edited value; redeploy. Each variable is scoped to Production, Preview and/or Development; a value set only for Production is missing on preview URLs. Client-side code needs the framework prefix (NEXT_PUBLIC_, VITE_). vercel env pull .env.local copies the Development values down for local runs.
