feat(admincheck): this check is so we dont use stuff on the wrong servers
This commit is contained in:
8
frontend/src/utils/adminUrlCheck.ts
Normal file
8
frontend/src/utils/adminUrlCheck.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export const adminUrlCheck = () => {
|
||||||
|
const host = window.location.host.split(":")[0];
|
||||||
|
const okHost = ["localhost", "usmcd1vms036"];
|
||||||
|
if (okHost.includes(host)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user