const WISE_DOMAINS = new Set(['wise.com', 'dev-wi.se', 'transferwise.com', 'trwi.se']);
function createUrl(path) {
  if (typeof window !== 'undefined') {
    const {
      hostname
    } = window.location;
    if (WISE_DOMAINS.has(hostname) || /customenvs.k8stw.com/g.test(hostname)) {
      return `https://${hostname}${path}`;
    }
  }
  return `https://wise.com${path}`;
}

export { createUrl as c };
//# sourceMappingURL=createUrl-71d09e7b.js.map
