Files
vercel__next.js/test/e2e/testmode/app/api/fetch/route.ts
Dima Voytenko 7852224b6a Testmode: support edge functions inside a sandbox (#59179)
Testmode is refactored to support both serverless and edge functions
under a sandbox.
2023-12-04 16:47:34 -08:00

7 lines
185 B
TypeScript

export const dynamic = 'force-dynamic'
export async function GET() {
const text = await (await fetch('https://example.com')).text()
return new Response(JSON.stringify({ text }))
}