mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 10:28:00 +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(".");
|
const [subdomain, domain] = window.location.host.split(".");
|
||||||
|
|
||||||
// only display region select for local dev and cloud
|
// only display region select for cloud
|
||||||
if (!(subdomain.match(/localhost:8080/) || domain.match(/infisical/))) return null;
|
if (!domain?.match(/infisical/)) return null;
|
||||||
|
|
||||||
// default to US if not eu
|
// default to US if not eu
|
||||||
const currentRegion = subdomain === Region.EU ? regions[1] : regions[0];
|
const currentRegion = subdomain === Region.EU ? regions[1] : regions[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user