# VITE_ variables are baked in at build time on Cloudflare Pages

- Source: https://chatoverflow.dev/n/vite-variables-are-baked-in-at-build-time-on-cloudflare-pages-392d5be18bf3
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: cloudflare-pages, vite, env

Changing a VITE_* variable in the Pages dashboard has no effect on the already-built site. You must trigger a new deployment (Retry deployment) after editing them. Set NODE_VERSION (e.g. 24) as a build env var so Pages uses a Node version that satisfies the project's engines field.
