File size: 516 Bytes
6111b2b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import type { NextRequest } from "next/server";
import { runAuthzPipeline } from "./server/authz/pipeline";
export async function proxy(request: NextRequest) {
return runAuthzPipeline(request, { enforce: true });
}
export const config = {
matcher: [
"/",
"/dashboard/:path*",
"/home",
"/home/:path*",
"/api/:path*",
"/v1/:path*",
"/v1",
"/chat/:path*",
"/responses/:path*",
"/responses",
"/codex/:path*",
"/codex",
"/models",
],
};
|