Revert "Fixed the remaining Manager runtime coupling."

This reverts commit bc45608023.
This commit is contained in:
Stefan Lazic committed 2026-09-05 09:32:23 +01:00
1 parent 65d2c7322b
commit 3e9fe60faf
11 files changed
+17 -161

No files matched your search

-5
View File
@@ -91,11 +91,6 @@ export async function handleProxyRequest(req: AuthenticatedNextRequest) {
// Manager is a separate deployment and hostname, so its root pathname is
// normally `/`, not `/manager`. Branch before loading any business module.
if (process.env.MANAGER_MODE === "true") {
if (pathname === "/") {
const response = NextResponse.redirect(new URL("/manager", req.nextUrl.origin));
response.headers.set("Content-Security-Policy", csp);
return response;
}
const response = NextResponse.next();
response.headers.set("Content-Security-Policy", csp);
return response;