next.js/test/e2e/testmode/app/api/fetch-edge/route.ts
route.ts8 lines215 B
export const dynamic = 'force-dynamic'
export const runtime = 'edge'

export async function GET() {
  const text = await (await fetch('https://example.com')).text()
  return new Response(JSON.stringify({ text }))
}
Quest for Codev2.0.0
/
SIGN IN