Can I use nextjs' force-cache on the Cloudflare page?
page: liking-game.pages.dev
account id: 607b646393c3283f78752e279619466e
Problems:
Distributed nextjs through @cloudflare/next-on-pages. I am using the cache: force-cache, revalidtion option in the part where data is loaded through fetch (GET), but it works differently than I expected.
1. https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/ I read this official document and added binding to the pages settings as follows. I expected the request to be cached (html, rsc), but no keypair is stored.
2. SSR is only partially successful. There is no problem when the user initially enters the website, but when the search button is pressed in the part where the detailed search data is displayed (eg. the query string is changed), there is no response, a message that SSR failed is displayed, and the page dies.
I would appreciate it if you could help me while you are busy.๐
Cloudflare Docs
Full-stack (SSR) ยท Cloudflare Pages docs
Next.js โ is an open-source React.js framework for building full-stack applications. This section helps you deploy a full-stack Next.js project to Cloudflare Pages using @cloudflare/next-on-pages โ.
1 Reply
I use nextjs 15 , react 18