mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Stacked to https://github.com/vercel/next.js/pull/84119 This PR adds a codemod for renaming `middleware` to `proxy`. Below are the behaviors: - Rename `middleware.*`, `src/middleware.*` to `proxy.*`, `src/proxy.*` - Rename function/variable exports from `middleware` to `proxy`. Default exports are skipped.
8 lines
172 B
TypeScript
8 lines
172 B
TypeScript
import { NextResponse } from 'next/server'
|
|
|
|
const proxy = 'existing proxy variable'
|
|
|
|
export function _proxy1() {
|
|
return NextResponse.next()
|
|
}
|
|
export { _proxy1 as proxy }; |