next.js/test/e2e/app-dir/cache-components/app/routes/task/route.ts
route.ts13 lines330 B
import type { NextRequest } from 'next/server'

import { getSentinelValue } from '../../getSentinelValue'

export async function GET(request: NextRequest) {
  await new Promise((r) => setTimeout(r, 10))
  const response = JSON.stringify({
    value: getSentinelValue(),
    message: 'task',
  })
  return new Response(response)
}
Quest for Codev2.0.0
/
SIGN IN