A Next.js middleware that provides server-side cookie access during server-side rendering.
This project is a cookie handler for Next.js applications that need to access cookies during server-side rendering (SSR). It solves the common problem where document.cookie is unavailable on the server by providing a middleware-based solution.
document is not available.res.locals for easy retrieval within getInitialProps or similar lifecycle methods.The project follows a pragmatic approach to bridge the gap between client-side and server-side cookie handling in Next.js, ensuring consistent data access regardless of rendering environment.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.