mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Stacked on https://github.com/vercel/next.js/pull/85139 Closes NEXT-4746
5 lines
166 B
TypeScript
5 lines
166 B
TypeScript
import { NextResponse, NextRequest } from 'next/server'
|
|
|
|
export function proxy(request: NextRequest) {
|
|
return NextResponse.redirect(new URL('/home', request.url))
|
|
} |