Files
Jiwon ChoiandGitHub 537f8c7890 Log Compiled proxy in ... (#84746)
When using `proxy`, the `Compiled X in ...` message in Turbopack had
hardcoded `middleware`. Therefore, modify to display `proxy` if using a
proxy. Also, Webpack displayed with a leading slash `/proxy`, which
could be misinterpreted as a route, so I removed the leading slash.
2025-10-10 19:39:52 +02:00

6 lines
142 B
TypeScript

import { NextResponse } from 'next/server'
export function middleware(req: Request) {
return NextResponse.rewrite(new URL('/', req.url))
}