chore: rename proxy to middleware

This commit is contained in:
Maze Winther 2026-03-27 21:20:46 +01:00
parent d862e56e34
commit f8a0390827
1 changed files with 18 additions and 18 deletions

View File

@ -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).*)",
],
};