diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index b596289..5a566c7 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -9,7 +9,22 @@ export default defineConfig(({ mode }) => { const apiProxyTarget = env.VITE_API_PROXY_TARGET || 'http://localhost:3000'; return { - plugins: [react(), tsconfigPaths(), metricsPlugin()], + plugins: [ + react(), + tsconfigPaths(), + metricsPlugin(), + { + name: 'cloudflare-rocket-loader-fix', + transformIndexHtml(html) { + // Prevent Cloudflare Rocket Loader from mangling