No successful run was found on main (468c845) during the generation of this report, so 17c7b03 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
feat(csp): add collapseHeaders option to experimental CSP
Adds `collapseHeaders` option to `experimental.csp` that, when used with experimentalStaticHeaders, consolidates all CSP headers into a single catch-all route, preventing build errors and improving performance for large sites with many routes.
- Add collapseHeaders boolean option to experimental.csp configuration
- Modify RouteToHeaders population in generate.ts to support header collapsing
- Add tests for Vercel, Netlify, and Node adapters
- Maintain backward compatibility with existing CSP usage
Benefits all adapters that support experimentalStaticHeaders automatically.
Reduces config file size from MB to KB for large sites.