Skip to content

Commit b8554ec

Browse files
Moved middleware.ts to proxy.ts as per next.js 16 depracation / renaming of middleware to proxy.
1 parent 15a3459 commit b8554ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware.ts renamed to src/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function shouldLog(pathname: string): boolean {
106106
/**
107107
* Enhanced middleware function with comprehensive HTTP access logging
108108
*/
109-
export function middleware(request: NextRequest): NextResponse {
109+
export function proxy(request: NextRequest): NextResponse {
110110
// Use Date.now() for Edge Runtime compatibility
111111
const startTime = Date.now()
112112
const { pathname, search } = request.nextUrl

0 commit comments

Comments
 (0)