Vite environment variables: transitioning from implicit to explicit client-side exposure
Client-side Secret Leakage Prevention Vite utilizes a prefix-based filtering system to ensure that only variables prefixed with VITE_ are exposed to the client-side bundle via import.meta.env . This mechanism is designed to prevent the accidental leakage of sensitive system environment variables from the Node.js process.env global into the browser. Configura