From 9ebce35d2b6359ff12ac2621412d43a56c09bd83 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 21 Oct 2025 22:02:09 -0700 Subject: [PATCH] Dont do local sites undefined in cloud --- server/private/lib/traefik/getTraefikConfig.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/private/lib/traefik/getTraefikConfig.ts b/server/private/lib/traefik/getTraefikConfig.ts index 31421b9d..881e4632 100644 --- a/server/private/lib/traefik/getTraefikConfig.ts +++ b/server/private/lib/traefik/getTraefikConfig.ts @@ -126,7 +126,8 @@ export async function getTraefikConfig( and( isNull(sites.exitNodeId), sql`(${siteTypes.includes("local") ? 1 : 0} = 1)`, // only allow local sites if "local" is in siteTypes - eq(sites.type, "local") + eq(sites.type, "local"), + sql`(${build != "saas" ? 1 : 0} = 1)` // Dont allow undefined local sites in cloud ) ), or(