Connor
Connor
CDCloudflare Developers
Created by Connor on 10/21/2023 in #pages-help
Build Error Next.js
I am getting the below error when trying to build my nextjs project using npx @cloudflare/next-on-pages@1 . This makes no sense because export const runtime = 'edge'; is set on my root layout which applies to every page in my entire repo.
⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /index
⚡️
⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
⚡️ export const runtime = 'edge';
⚡️
⚡️ You can read more about the Edge Runtime on the Next.js documentation:
⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes
⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /index
⚡️
⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
⚡️ export const runtime = 'edge';
⚡️
⚡️ You can read more about the Edge Runtime on the Next.js documentation:
⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes
2 replies
CDCloudflare Developers
Created by Connor on 10/17/2023 in #pages-help
Segmentation Fault - Failed Builds
Hello, I was deploying one of my Next.js Pages sites and it all of a suddent started throwing Segmentation fault and failing to deploy. I thought this was strange because not much code had changed, so I redeployed the last working deployment that was working and it throws the same error now. So this is not a problem with my code, but a problem with pages. Anyone have any thoughts? Not Working Deployment: d5b8240e-4109-41e2-bae9-ed17078d05b3 Working Deployment: 15e1d74a-3357-41f3-b94e-63e94247dd95 Account: 4155cbb49d5f64034f319f1ef5182bec Not Working Deployment Logs Attached
7 replies