Does Cloudflare Pages support Next.js Client Side rendering with Next.js App Router?

Dumb question but, Is it compulsory to use this with @cloudflare/next-on-pages?
export const runtime = "edge";
export const preferredRegion = "auto";
export const runtime = "edge";
export const preferredRegion = "auto";
Does Cloudflare Pages support Next.js Client Side rendering with Next.js App Router?
5 Replies
James
James•16mo ago
neither of those are compulsory, and the second one won't do anything.
!Dev
!DevOP•16mo ago
I see, thanks for answering! 🙌 Follow up question, I was reading the CF Forums, it said @cloudflare/next-on-pages has it's own function which runs on the edge to render the content. And hence, it gets counted towards the above requests as in the screenshot. Let's say, I use Client-side rendering, will the requests still be counted or not? Since it's static now...
James
James•16mo ago
so at a high level it's essentially a routing system that figures out where each request should according to a routing config generated by vercel you're prerendering your routes which means no time spent doing SSR, but it will spend a small amount of time figuring out which file to return for the route
tigcup.org
tigcup.org•16mo ago
@tigcup.org
!Dev
!DevOP•16mo ago
I see, thanks for answering once again! @Better James

Did you find this page helpful?