(host: string)
| 39 | }; |
| 40 | |
| 41 | export const isOnMainSite = (host: string) => { |
| 42 | // TODO: Do we even need getMainSiteHostname()? |
| 43 | return ( |
| 44 | host === getMainSiteHostname() || |
| 45 | host.endsWith('.vercel.app') || |
| 46 | host === 'https://www.answeroverflow.com' || |
| 47 | host.endsWith('.rhyssul.com') |
| 48 | ); |
| 49 | }; |
| 50 | |
| 51 | export const makeMainSiteLink = (path: string) => { |
| 52 | return `${getBaseUrl()}${path.startsWith('/') ? path : `/${path}`}`; |
no test coverage detected