mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Follow-up to https://github.com/vercel/next.js/pull/45716 this updates the ISR handling for app routes. This also ensures the E2E deploy tests are running for the `app-routes` test suite. fixes NEXT-509 Relies on https://github.com/vercel/vercel/pull/9489 ---------
13 lines
331 B
TypeScript
13 lines
331 B
TypeScript
import { withRequestMeta } from '../../../helpers'
|
|
import { NextRequest } from 'next/server'
|
|
|
|
export async function GET(request: NextRequest): Promise<Response> {
|
|
const { searchParams } = request.nextUrl
|
|
|
|
return new Response('hello, world', {
|
|
headers: withRequestMeta({
|
|
ping: searchParams.get('ping'),
|
|
}),
|
|
})
|
|
}
|