fixes to admin using client fetch
CI / test (push) Successful in 7s

This commit is contained in:
2026-01-29 21:52:12 -05:00
parent a13687635b
commit 45270f9b18
22 changed files with 828 additions and 52 deletions
+2
View File
@@ -47,6 +47,8 @@ export function middleware(req: NextRequest) {
const { pathname } = req.nextUrl;
const token = req.cookies.get("session_token")?.value;
const isLoggedIn = Boolean(token);
console.log("is logged in: " + isLoggedIn);
console.log("MW:", req.nextUrl.pathname)
// IMPORTANT: Use a server-only env var for middleware behavior.
// Set LAUNCH_ONLY_ROOT=true in your Docker compose.