From 3d083986aed528c2f881d6f673c0be03b8986c0b Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 19 Mar 2025 17:13:21 -0500 Subject: [PATCH] feat(admincheck): this check is so we dont use stuff on the wrong servers --- frontend/src/utils/adminUrlCheck.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 frontend/src/utils/adminUrlCheck.ts diff --git a/frontend/src/utils/adminUrlCheck.ts b/frontend/src/utils/adminUrlCheck.ts new file mode 100644 index 0000000..b128fd2 --- /dev/null +++ b/frontend/src/utils/adminUrlCheck.ts @@ -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; +};