mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? * adds middleware manifest and other missing items for edge app routes * fixes react-server condition in edge context * fixes node.js route context --------- Co-authored-by: Alex Kirszenberg <[email protected]>
10 lines
203 B
TypeScript
10 lines
203 B
TypeScript
import { NextRequest, NextResponse } from 'next/server'
|
|
|
|
export const GET = (req: NextRequest) => {
|
|
return NextResponse.json({
|
|
pathname: req.nextUrl.pathname,
|
|
})
|
|
}
|
|
|
|
export const runtime = 'edge'
|