fixed cf?
All checks were successful
Docker Build & Publish / Build Docker (push) Successful in 1m8s

This commit is contained in:
ChrQR 2024-05-12 22:28:50 +02:00
parent e6f5333851
commit 04288c7dfe

View File

@ -1,5 +1,12 @@
export default function Analytics(){
import Script from 'next/script';
export default function Analytics() {
return (
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "cc87b1af28264bd7aaf287ba7f905362"}'></script>
)
<Script
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "cc87b1af28264bd7aaf287ba7f905362"}'
defer
strategy="afterInteractive" // Ensures the script is loaded after the page is interactive
/>
);
}