From 70aa73482e5b30f96af6ecd08941745a376f049b Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Mon, 30 Sep 2024 09:58:49 -0700 Subject: [PATCH] fix: only display region select for cloud --- frontend/src/components/navigation/RegionSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/navigation/RegionSelect.tsx b/frontend/src/components/navigation/RegionSelect.tsx index 21bc26a56..008c7ea3a 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];