This might be more of an nextjs issue then next-on-pages, but I randomly started getting this error:
This might be more of an nextjs issue then next-on-pages, but I randomly started getting this error:


export const runtime = "edge"; needed for Next Apps running on the edge with Cloudflare.
next-on-pages be recommended more or less over @opennextjs/cloudflare? Besides some very minute things, I cannot really find any meaningful difference between the two, so I'm wondering which one is better and why.Invalid prerender config for xxx
⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /_not-foundRoute (app) Size First Load JS
▲ ┌ ƒ / 8.18 kB 95.3 kB
▲ ├ ○ /_not-found 873 B 88 kB▲ Route (app) Size First Load JS
▲ ┌ ƒ / 3.64 kB 90.8 kB
▲ ├ ƒ /_not-found 873 B 88 kBError: Module not found: Can't resolve 'net'
14 | Object.defineProperty(exports, "__esModule", { value: true });
15 | const events_1 = require("events");
> 16 | const net = require("net");
| ^
17 | const tls = require("tls");
18 | const errors_1 = require("../errors");
19 | const utils_1 = require("../utils");