setupDevPlatform call can stay as is, what you need to change is getRequestContext and make sure that it is not being called as part of the route initialization (e.g. don't put getRequestContext() to the top level of a route file, but have it part of a function that gets called when the route is actually run)getRequestContext can't be called within an actions.ts due to edge runtime requirement. Gana have to find another way to populate data to a client component.

Please make sure that all your non-static routes export the following edge runtime route segment config:
locale persist option of setupDevPlatform doesn't appear to be working as expected, unless I have it configured incorrectly.wrangler/state/v3, I've tried both with and without v3 at the end of the path


runtime = edge, but that nullifies static generation, right?edge that means the page will be rendered for each request, isn't that right? Am I missing something?runtime: edge), will that page be statically generated and served like it would be from R2/CDN basically? Or is everything run each time, even the 100% static pages. I'm trying to figure out how the NextJS bundle generation, NextJS caching, Cloudflare caching, and overall Cloudflare infra work together. Are there any resources about this I can read?setupDevPlatformsetupDevPlatformgetRequestContextgetRequestContextgetRequestContext()persist.wrangler/state/v3v3Functions scriptruntime = edgeruntime: edgeif (process.env.NODE_ENV === "development") {
await setupDevPlatform({
persist: "../../.wrangler/search/v3",
})
}