mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: only display region select for cloud
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user