Dont do local sites undefined in cloud

This commit is contained in:
Owen
2025-10-21 22:02:09 -07:00
parent 6fd6c77ce6
commit 9ebce35d2b

View File

@@ -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(