chore(ui): merge master into expired-session fix

This commit is contained in:
Alan Buscaglia committed 2026-07-28 10:41:50 +02:00
commit ecfea481ef
568 files changed
+23697 -2930

No files matched your search

+4 -1
View File
@@ -3,6 +3,7 @@ import type { NextAuthRequest } from "next-auth";
import { auth } from "@/auth.config";
import { readEnv } from "@/lib/runtime-env";
import { isCloud } from "@/lib/shared/env";
const publicRoutes = [
"/sign-in",
@@ -43,7 +44,9 @@ export default auth((req: NextAuthRequest) => {
if (
pathname.startsWith("/billing") &&
(!cloudBillingEnabled || user?.permissions?.manage_billing !== true)
(!isCloud() ||
!cloudBillingEnabled ||
user?.permissions?.manage_billing !== true)
) {
return NextResponse.redirect(new URL("/profile", req.url));
}