requestly or some modern fetch library
requestly⚡️ 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 kBimport { 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 />
}