From f8a03908270da03a4aff47020dadee802317abd2 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 27 Mar 2026 21:20:46 +0100 Subject: chore: rename proxy to middleware --- apps/web/src/middleware.ts | 18 ++++++++++++++++++ apps/web/src/proxy.ts | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 apps/web/src/middleware.ts delete mode 100644 apps/web/src/proxy.ts (limited to 'apps/web') diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts new file mode 100644 index 00000000..c7f28025 --- /dev/null +++ b/apps/web/src/middleware.ts @@ -0,0 +1,18 @@ +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).*)", + ], +}; diff --git a/apps/web/src/proxy.ts b/apps/web/src/proxy.ts deleted file mode 100644 index cdad61c1..00000000 --- a/apps/web/src/proxy.ts +++ /dev/null @@ -1,18 +0,0 @@ -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).*)", - ], -}; -- cgit v1.3.1