You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite.config.js isn't loaded and therefore none of its configuration is available in production. (But that's usually ok since Vite configs are usually only about configuring dev & build.)
The text was updated successfully, but these errors were encountered:
Vite isn't loaded in production
In production, Vite isn't loaded at all. Because loading Vite and all your Vite plugins would considerably bloat your production server.
On a high-level, Vite really only is a development tool. So it makes sense to not load Vite in production.
Also, in restrictive environments such as on the edge (Cloudflare Workers, Deno Deploy, ...) we actually cannot load Vite.
Consequences
This has several consequences:
vite.config.js
isn't loaded and therefore none of its configuration is available in production. (But that's usually ok since Vite configs are usually only about configuring dev & build.)The text was updated successfully, but these errors were encountered: