mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
7852224b6a
Testmode is refactored to support both serverless and edge functions under a sandbox.
7 lines
185 B
TypeScript
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 }))
|
|
}
|