Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: only display region select for cloud

Scott Wilson70aa73482e5b
diff --git a/frontend/src/components/navigation/RegionSelect.tsx b/frontend/src/components/navigation/RegionSelect.tsx
index 21bc26a56a..008c7ea3a8 100644
--- a/frontend/src/components/navigation/RegionSelect.tsx
+++ b/frontend/src/components/navigation/RegionSelect.tsx
@@ -80,8 +80,8 @@ export const RegionSelect = () => {
const [subdomain, domain] = window.location.host.split(".");
- // only display region select for local dev and cloud
- if (!(subdomain.match(/localhost:8080/) || domain.match(/infisical/))) return null;
+ // only display region select for cloud
+ if (!domain?.match(/infisical/)) return null;
// default to US if not eu
const currentRegion = subdomain === Region.EU ? regions[1] : regions[0];