next.js/test/e2e/testmode/app/api/fetch/route.ts
route.ts7 lines185 B
export const dynamic = 'force-dynamic'

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