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; +};