The open-source CapCut alternative
chore: rename proxy to middleware
Maze Wintherf8a03908270d
diff --git a/apps/web/src/proxy.ts b/apps/web/src/middleware.tssimilarity index 88%rename from apps/web/src/proxy.tsrename to apps/web/src/middleware.tsindex cdad61c1..c7f28025 100644--- a/apps/web/src/proxy.ts+++ b/apps/web/src/middleware.ts@@ -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).*)",+ ],+};