InBlue
InBlue
CDCloudflare Developers
Created by InBlue on 7/12/2023 in #pages-help
[Nextjs 13 App router] Routes without Edge Runtime
When building my app locally with pnpm dlx @cloudflare/next-on-pages@latest everything builds as expected, however, doing so on Cloudflare results in an error after the build has completed stating that my server components require export const runtime = "edge"; which has already been set in all of them and confirmed by the local build. I am using build system v2 though I don't believe that should impact this as I would require a newer nodejs version regardless of the underlying runner operating system (Ubuntu 20 vs 22)
12 replies