mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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 }))
|
|
}
|