next.js/test/e2e/app-dir/app-static/app/api/large-data/route.js
route.js14 lines280 B
import { NextResponse } from 'next/server'

export const revalidate = false

export async function GET() {
  console.log('Load data')
  return NextResponse.json({
    now: Date.now(),
    content: Array.from(new Array(3 * 1024 * 1024))
      .map(() => 1)
      .join(''),
  })
}
Quest for Codev2.0.0
/
SIGN IN