This repo demostrates a bug in middleware of production builds of Next.JS TypeScript projects.
Created from the reproduction template of next.js : https://github.com/vercel/next.js/tree/canary/examples/reproduction-template
Adds this CSP middleware code from Next.JS documentation https://nextjs.org/docs/app/building-your-application/configuring/content-security-policy