feat(housekeeping): cut over administration to ase

This commit is contained in:
Simo committed 2026-08-30 20:35:22 +02:00
1 parent c9e35cf602
commit 2b8f73a91d
457 files changed
+589 -55936

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
import { getToken } from "next-auth/jwt";
import { env } from "@/env";
import { buildContentSecurityPolicy, createCspNonce } from "@/lib/csp";
import { shouldRedirectAdminRequest } from "@/lib/proxy-access";
import { shouldRedirectHousekeepingRequest } from "@/lib/proxy-access";
const SECURITY_HEADERS: Record<string, string> = {
"X-Content-Type-Options": "nosniff",
@@ -20,7 +20,7 @@ export const proxy = async (req: import("next/server").NextRequest) => {
secureCookie: true,
});
if (shouldRedirectAdminRequest(req.nextUrl.pathname, token)) {
if (shouldRedirectHousekeepingRequest(req.nextUrl.pathname, token)) {
return NextResponse.redirect(new URL("/login", req.url));
}