fix: rename middleware to proxy for Next.js 16 compatibility
Some checks failed
Build and Deploy / build (push) Has been cancelled

This commit is contained in:
Unchained
2026-04-01 04:19:07 +02:00
parent edd5c1582b
commit 3697a5d8ea

View File

@@ -1,7 +1,7 @@
import { NextResponse } from "next/server"; import { NextResponse } from "next/server";
import type { NextRequest } from "next/server"; import type { NextRequest } from "next/server";
export function middleware(request: NextRequest) { export function proxy(request: NextRequest) {
const response = NextResponse.next(); const response = NextResponse.next();
const url = request.nextUrl.pathname; const url = request.nextUrl.pathname;