MCPcopy Create free account
hub / github.com/AnswerOverflow/AnswerOverflow / getMainSiteHostname

Function getMainSiteHostname

packages/constants/src/links.ts:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34};
35
36export const getMainSiteHostname = () => {
37 const url = new URL(getBaseUrl());
38 return url.host;
39};
40
41export const isOnMainSite = (host: string) => {
42 // TODO: Do we even need getMainSiteHostname()?

Callers 2

MessageResultPageFunction · 0.90
isOnMainSiteFunction · 0.85

Calls 1

getBaseUrlFunction · 0.70

Tested by

no test coverage detected