Files
JJ KasperandGitHub 1253a3035f Add ISR handling for app routes (#46133)
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

---------
2023-02-21 15:25:42 -08:00

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'),
}),
})
}