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?
6 Replies
James
James•5mo ago
neither of those are compulsory, and the second one won't do anything.
!Dev
!DevOP•5mo ago
I see, thanks for answering! 🙌
!Dev
!DevOP•5mo ago
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...
No description
James
James•5mo 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•5mo ago
@tigcup.org
No description
!Dev
!DevOP•5mo ago
I see, thanks for answering once again! @Better James
Want results from more Discord servers?
Add your server