CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.24k stars 99 forks source link

Is there a way to use this library with Next.js ISR? #492

Closed dphuang2 closed 8 months ago

dphuang2 commented 8 months ago

See ISR documentation for explanation of ISR.

Main issue is that all the examples assume that entire website is known at build time but this isn't the case if you are using ISR.

Any examples/ideas?

itsmatteomanf commented 8 months ago

I guess you could try and create an index using the NodeJS APIs.

https://pagefind.app/docs/node-api/

This of course requires that all content is known at build time though, but that is gonna be a requirement for any at build, static, indexed search libraries.