This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
After adding the analytics.googleAnalyticsId I get the following error:
Refused to load the script 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
To Reproduce
clone, install, add googleAnalyticsId and deploy to Vercel
Default ContentSecurityPolicy from next.config.js:
Describe the bug
After adding the analytics.googleAnalyticsId I get the following error:
Refused to load the script 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
To Reproduce clone, install, add googleAnalyticsId and deploy to Vercel
Default ContentSecurityPolicy from next.config.js:
How can i fix it?