noahdelaweb
Explore posts from serversCDCloudflare Developers
•Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
⚡️ Completed
18:22:29.917 ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project. 18:22:29.917 ⚡️ 18:22:29.917 ⚡️ The following routes were not configured to run with the Edge Runtime: 18:22:29.917 ⚡️ - /api/contact 18:22:29.918 ⚡️ - /api/hello 18:22:29.918 ⚡️ 18:22:29.918 ⚡️ Please make sure that all your non-static routes export a config object specifying the edge runtime, like: 18:22:29.918 ⚡️ export const config = { runtime: 'edge' }; 18:22:29.918 ⚡️ 18:22:29.918 ⚡️ You can read more about the Edge Runtime on the Next.js documentation: 18:22:29.918 ⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes
npx vercel build
.
18:22:29.91618:22:29.917 ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project. 18:22:29.917 ⚡️ 18:22:29.917 ⚡️ The following routes were not configured to run with the Edge Runtime: 18:22:29.917 ⚡️ - /api/contact 18:22:29.918 ⚡️ - /api/hello 18:22:29.918 ⚡️ 18:22:29.918 ⚡️ Please make sure that all your non-static routes export a config object specifying the edge runtime, like: 18:22:29.918 ⚡️ export const config = { runtime: 'edge' }; 18:22:29.918 ⚡️ 18:22:29.918 ⚡️ You can read more about the Edge Runtime on the Next.js documentation: 18:22:29.918 ⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes
16 replies