chore: rename proxy to middleware

This commit is contained in:
Maze Winther
2026-03-29 15:58:46 +02:00
parent d862e56e34
commit f8a0390827
@@ -1,18 +1,18 @@
import { NextResponse } from "next/server";
export async function proxy() {
return NextResponse.next();
}
export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
"/((?!api|_next/static|_next/image|favicon.ico).*)",
],
};
import { NextResponse } from "next/server";
export async function middleware() {
return NextResponse.next();
}
export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
"/((?!api|_next/static|_next/image|favicon.ico).*)",
],
};