Build tooling
Vite public environment prefix
Default exposed VITE_ variables must be treated as public client data.
Formal Syntax & Structure
react syntaxreact
import.meta.env.VITE_APP_TITLEWorking Example
Example Snippetreact
const title = import.meta.env.VITE_APP_TITLE;