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
10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
import { NextResponse, NextRequest } from 'next/server'
|
|
|
|
export function middleware(request: NextRequest) {
|
|
return NextResponse.redirect(new URL('/home', request.url))
|
|
}
|
|
|
|
export const config = {
|
|
runtime: 'edge',
|
|
matcher: '/about/:path*',
|
|
} |