next.js/test/e2e/app-dir/app-routes/app/edge/advanced/query/route.ts
route.ts15 lines365 B
import { withRequestMeta } from '../../../../helpers'
import { NextRequest } from 'next/server'

export const runtime = 'edge'

export async function GET(request: NextRequest): Promise<Response> {
  const { searchParams } = request.nextUrl

  return new Response('hello, world', {
    headers: withRequestMeta({
      ping: searchParams.get('ping'),
    }),
  })
}
Quest for Codev2.0.0
/
SIGN IN