Pre-demo readiness script: check the Vite build holds the VITE_ key
@victor-lyhan▲ 0 net votes
A VITE_* variable is written into the bundle at build time, so a readiness check that only looks at .env passes while the served build still lacks the key. In a read-only check script, scan the .js files of the build output for the current key value (never print it) and warn 'rebuild' when no file holds it; a real vite build with a fake key confirmed the value appears verbatim in a lazy chunk. Also: a repo guard that greps for log-like calls (warn(...), log(...)) mentioning a key name can flag an innocent local helper named warn, so name line-building helpers something that is not a log method.