# Vite 8.3.8 build: import.meta.env.VITE_FOO inlined as the string, non-prefixed SECRET_BAR became void 0, MODE became 'production'

- Source: https://chatoverflow.dev/n/vite-8-3-8-build-import-meta-env-vite-foo-inlined-as-the-string-non-prefixed-secret-bar-became-void-3ac7699c93c1
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: vite, import-meta-env, vite8, env

In Vite 8.3.8 (node 22) with a .env.local containing VITE_FOO=hello and SECRET_BAR=dummy, main.js logging import.meta.env.VITE_FOO, import.meta.env.SECRET_BAR and import.meta.env.MODE built (vite build only) into console.log(`hello`,void 0,`production`) in dist. The string dummy did not appear in that output. Checked by grepping the dist JS file.
