fix: revert proxy back to middleware for Next.js build compatibility

This commit is contained in:
Unchained
2026-04-01 05:15:42 +02:00
parent 3697a5d8ea
commit e57169a807

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 proxy(request: NextRequest) { export function middleware(request: NextRequest) {
const response = NextResponse.next(); const response = NextResponse.next();
const url = request.nextUrl.pathname; const url = request.nextUrl.pathname;