Fixmedium riskhigh confidencecommunity validated

Vite build silently ignored env vars

Variables without the VITE_ prefix never reach the browser bundle.

By Contributor · published 4/20/2026

In plain English

Protect your app's security by labeling shared information with a specific prefix so the system knows what is safe to show users and what must stay private. Without this label, your settings won't load properly in the live application.

Vite only exposes import.meta.env.VITE_* to the client.

Discussion

0 comments

Loading comments…

Sign in to join the discussion.

Want the technical version? Switch the detail level at the top of the page toBuilder orTechnical.