ViVite · Lesson 2 of 6
Vite Config
`vite.config.ts` is where you configure everything: plugins, path aliases, proxy rules, build options, and environment variables. It's shorter than Webpack config by an order of magnitude.
✦ Tip
Never prefix non-public secrets with `VITE_`. Anything with `VITE_` is bundled into your client-side code and visible in the browser. Server-side secrets (database URLs, private API keys) should be in your backend environment, not your frontend .env files.
Never prefix non-public secrets with `VITE_`. Anything with `VITE_` is bundled into your client-side code and visible in the browser. Server-side secrets (database URLs, private API keys) should be in your backend environment, not your frontend .env files.