mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
10 lines
382 B
TypeScript
10 lines
382 B
TypeScript
|
export const isLocalhostDomain = (hostname = window.location.hostname) =>
|
||
|
hostname === 'localhost';
|
||
|
|
||
|
export const isUnleashDomain = (hostname = window.location.hostname) =>
|
||
|
hostname.endsWith('.getunleash.io') ||
|
||
|
hostname.endsWith('.unleash-hosted.com');
|
||
|
|
||
|
export const isVercelBranchDomain = (hostname = window.location.hostname) =>
|
||
|
hostname.endsWith('.vercel.app');
|