()
| 93 | * @returns The email domain (e.g., 'sim.ai' instead of 'www.sim.ai') |
| 94 | */ |
| 95 | export function getEmailDomain(): string { |
| 96 | try { |
| 97 | const baseDomain = getBaseDomain() |
| 98 | return baseDomain.startsWith('www.') ? baseDomain.substring(4) : baseDomain |
| 99 | } catch (_e) { |
| 100 | return isProd ? 'sim.ai' : 'localhost:3000' |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | const DEFAULT_SOCKET_URL = 'http://localhost:3002' |
| 105 | const DEFAULT_OLLAMA_URL = 'http://localhost:11434' |
no test coverage detected