If you're using SSG you probably wouldn't need to use next-on-pages and could just do a fully static
If you're using SSG you probably wouldn't need to use next-on-pages and could just do a fully static deployment instead
@vercel/otel library in a Next.js app that compiles with next-on-pages, then the CLI throws an error. So, we can’t use observability tools with OpenTelemetry (e.g., Sentry, Highlight.io). Furthermore, Cloudflare bought Baselime (observability tool) which supports OpenTelemetry standards, but we can’t use that either. @vercel/otel not being supported is ongoing for 7 months. @vercel/otel soon?error.tsx at the root of my app directory:not-found.tsx with this:"pages:build": "npx @cloudflare/next-on-pages",error.tsx and not-found.tsx and the error persists..next, .vercel, and node_modules directory then rebuilding everything, issue persists14.0.0 as I saw that's what was used in the next-on-pages e2e tests, and the issue persists..page.tsx, layout.tsx, and route.tsx, and specified the edge runtime, I'm completely stumped.use client from error.tsx gives this:async from not-found.tsx (which doesn't have any logic, just returns a div saying "not found", and it still gives the same error:layout.tsx file had the following:platforms approach, so don't have a root page.tsx file, only a layout.


⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /_error
⚡️
⚡️ 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'use client';
export const runtime = 'edge';
export default function Error() {
return (
<div>
<h1>Oops! Something went wrong.</h1>
<p>Try refreshing the page?</p>
</div>
);
}export const runtime = 'edge';
export default async function NotFound() {
// ...
return (
<div>
<h1>Not Found</h1>
</div>
);
}⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /_error
⚡️
⚡️ 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