react-prerendered-component icon indicating copy to clipboard operation
react-prerendered-component copied to clipboard

Is there a ready-to-use solution that integrates this lib with next.js?

Open kostia1st opened this issue 3 years ago • 1 comments

I'm interested in component caching and templatization that this lib claims to offer. However, an extra step seems to be required in order to use it with next.js, since next.js does not provide us with explicit code that writes HTML to response stream.

Am I missing something? Or if not, is there any 3rd party pre-built logic to integrate this lib with Next.js?

kostia1st avatar Jan 27 '23 13:01 kostia1st

NextJS provides two ways to tap into required logic - that would be middlewares(preferred) or custom server

However, you are right - without another piece connecting all the required dots that would be pretty hard to make it work. A very interesting task to solve 👍

theKashey avatar Jan 28 '23 03:01 theKashey