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

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

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