nibtime / next-safe-middleware

Strict CSP (Content-Security-Policy) for Next.js hybrid apps https://web.dev/strict-csp/
https://next-safe-middleware.vercel.app
MIT License
78 stars 20 forks source link

Split up the lib into multiple packages #66

Open nibtime opened 2 years ago

nibtime commented 2 years ago

Motivation

The main problem regarding maintainability is that it is the single package that depends on latest Next as a whole.

@strict-csp/builder

Dependencies

none

@strict-csp/next-ssr

Dependencies

References

https://github.com/vercel/next.js/issues/23993#issuecomment-818626449. This is a good reference for HTML processing for CSP with cheerio

@strict-csp/next-headers

Dependencies

Resources

@next-middleware/chainable

Dependencies

@strict-csp/next-middleware

Dependencies

Originally posted by @nibtime in https://github.com/nibtime/next-safe-middleware/discussions/60#discussioncomment-3259782