feat : overwite buzz.sudloh.com/guide
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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",
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user