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

9 lines
229 B
TypeScript

import { NextRequest, NextResponse } from 'next/server'
export const GET = (req: NextRequest) => {
return NextResponse.json({
pathname: req.nextUrl.pathname,
query: Object.fromEntries(req.nextUrl.searchParams),
})
}