BMS/frontend/proxy.ts
2026-03-19 11:32:17 +00:00

15 lines
517 B
TypeScript

import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
// Auth is disabled for demo mode — all routes are open.
// To enable Clerk auth, replace this with clerkMiddleware and add keys to .env.local
export default function proxy(_request: NextRequest) {
return NextResponse.next();
}
export const config = {
matcher: [
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
"/(api|trpc)(.*)",
],
};