diff --git a/preset/nitro.config.ts b/preset/nitro.config.ts index b3e289a..5bc772f 100644 --- a/preset/nitro.config.ts +++ b/preset/nitro.config.ts @@ -93,7 +93,7 @@ function createFallbackHTML(baseHTML: string): string { const window = new Window(); const dom = new window.DOMParser().parseFromString(baseHTML, "text/html"); for (const element of dom.querySelectorAll( - "link[href*=api.nature.global], link[crossorigin]:not([href*=cloudflareinsights.com]), script[src]:not([src*=cloudflareinsights.com]), script#__NUXT_DATA__" + "link[href*=api.nature.global], link[crossorigin]:not([rel=stylesheet]):not([href*=cloudflareinsights.com]), script[src]:not([src*=cloudflareinsights.com]), script#__NUXT_DATA__" )) { console.log("Removing element from fallback html", element.outerHTML); element.remove();