There is a fix coming to next-on-pages, so sentry will be implemented soon. I dont know when the nex
There is a fix coming to next-on-pages, so sentry will be implemented soon. I dont know when the next release date is


export const runtime = "edge"; needed for Next Apps running on the edge with Cloudflare.⚡️ 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");import { auth } from '@/auth'
import { getUser } from '@/client/services/user.service'
import Home from '@/components/pages/Home'
import { redirect } from 'next/navigation'
export const runtime = 'edge'
export default async function Main() {
const session = await auth()
const user = await getUser(session?.user?.localId ?? '')
if (!user?.cargo_giver) redirect('/profile')
return <Home />
}