feat: bring back real user monitoring for web perf

This commit is contained in:
ayo 2026-05-13 21:11:47 +02:00
parent 952fcc9fed
commit 11a8265221
2 changed files with 2 additions and 17 deletions

View file

@ -14,21 +14,6 @@ export default defineConfig({
domains: ['cdn.bsky.app', 'media.ayco.io'],
remotePatterns: [{ protocol: 'https' }],
},
// security: {
// csp: {
// directives: ["default-src: 'self'"],
// // insert additional directives
// // directives: ["default-src: 'self'"],
// scriptDirective: {
// resources: [
// 'self',
// 'https://static.cloudflareinsights.com/beacon.min.js',
// ],
// // Toggle the keyword `strict-dynamic`
// // strictDynamic: true,
// },
// },
// },
integrations: [
sitemap(),
serviceWorker({

View file

@ -127,10 +127,10 @@ const ogFileType = 'image/png'
}
</style>
<!-- Anonymous RUM for web perf by Cloudflare Web Analytics -->
<!-- <script
<script
defer
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "a39ad600e67a4db8960c639d2552435c"}'></script> -->
data-cf-beacon='{"token": "a39ad600e67a4db8960c639d2552435c"}'></script>
<!-- End Cloudflare Web Analytics -->
</body>
</html>