20 lines
390 B
TypeScript
20 lines
390 B
TypeScript
import { NextResponse } from "next/server";
|
|
|
|
export function proxy() {
|
|
if (process.env.PUBLIC_MIRROR === "true") {
|
|
return new NextResponse(null, { status: 404 });
|
|
}
|
|
return NextResponse.next();
|
|
}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
"/admin/:path*",
|
|
"/register",
|
|
"/api/admin/:path*",
|
|
"/api/auth/:path*",
|
|
"/api/events/admin",
|
|
"/api/presence/admin",
|
|
],
|
|
};
|