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 ---------
9 lines
229 B
TypeScript
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),
|
|
})
|
|
}
|