diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index e0152442b..42056cb15 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -60,7 +60,7 @@ export default defineConfig({ handler: (html) => html.replace( /]*\btype="module")(?=[^>]*\bsrc="\/assets\/[^"]+")(?![^>]*\bdata-cfasync=)[^>]*>/, - (script) => script.replace(">", ' data-cfasync="false">'), + (script) => script.replace('src="', 'data-cfasync="false" src="'), ), }, },