comment out unused analytics services and fix csp
This commit is contained in:
		| @@ -22,20 +22,20 @@ const siteMetadata = { | ||||
|     // If you want to use an analytics provider you have to add it to the | ||||
|     // content security policy in the `next.config.js` file. | ||||
|     // supports Plausible, Simple Analytics, Umami, Posthog or Google Analytics. | ||||
|     plausibleAnalytics: { | ||||
|       plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app | ||||
|     }, | ||||
|     simpleAnalytics: {}, | ||||
|     umamiAnalytics: { | ||||
|       // We use an env variable for this site to avoid other users cloning our analytics ID | ||||
|       umamiWebsiteId: process.env.NEXT_UMAMI_ID, // e.g. 123e4567-e89b-12d3-a456-426614174000 | ||||
|     }, | ||||
|     posthogAnalytics: { | ||||
|       posthogProjectApiKey: '', // e.g. 123e4567-e89b-12d3-a456-426614174000 | ||||
|     }, | ||||
|     googleAnalytics: { | ||||
|       googleAnalyticsId: '', // e.g. G-XXXXXXX | ||||
|     }, | ||||
|     // plausibleAnalytics: { | ||||
|     //   plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app | ||||
|     // }, | ||||
|     // simpleAnalytics: {}, | ||||
|     // posthogAnalytics: { | ||||
|     //   posthogProjectApiKey: '', // e.g. 123e4567-e89b-12d3-a456-426614174000 | ||||
|     // }, | ||||
|     // googleAnalytics: { | ||||
|     //   googleAnalyticsId: '', // e.g. G-XXXXXXX | ||||
|     // }, | ||||
|   }, | ||||
|   newsletter: { | ||||
|     // supports mailchimp, buttondown, convertkit, klaviyo, revue, emailoctopus | ||||
|   | ||||
| @@ -7,7 +7,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({ | ||||
| // You might need to insert additional domains in script-src if you are using external services | ||||
| const ContentSecurityPolicy = ` | ||||
|   default-src 'self'; | ||||
|   script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app umami.is; | ||||
|   script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app analytics.umami.is; | ||||
|   style-src 'self' 'unsafe-inline'; | ||||
|   img-src * blob: data:; | ||||
|   media-src 'none'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user