Revert "Fixed the remaining Manager runtime coupling."
This reverts commit bc45608023.
This commit is contained in:
11 files changed
+17
-161
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user