()
| 23 | export const WAITLIST_URL = 'https://forms.gle/6YLPPGi8X2DCr29T7'; |
| 24 | |
| 25 | export const getBaseUrl = () => { |
| 26 | const base = |
| 27 | // eslint-disable-next-line n/no-process-env |
| 28 | process.env.NEXT_PUBLIC_SITE_URL ?? |
| 29 | // eslint-disable-next-line n/no-process-env |
| 30 | (process.env.NODE_ENV !== 'development' |
| 31 | ? 'https://www.answeroverflow.com' |
| 32 | : 'http://localhost:3000'); |
| 33 | return base.endsWith('/') ? base.slice(0, -1) : base; |
| 34 | }; |
| 35 | |
| 36 | export const getMainSiteHostname = () => { |
| 37 | const url = new URL(getBaseUrl()); |
no outgoing calls
no test coverage detected