MCPcopy Index your code
hub / github.com/simstudioai/sim / getEmailDomain

Function getEmailDomain

apps/sim/lib/core/utils/urls.ts:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 * @returns The email domain (e.g., 'sim.ai' instead of 'www.sim.ai')
94 */
95export 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
104const DEFAULT_SOCKET_URL = 'http://localhost:3002'
105const DEFAULT_OLLAMA_URL = 'http://localhost:11434'

Callers 8

getFromEmailAddressFunction · 0.90
ChatDeployFunction · 0.90
chat.tsxFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

getBaseDomainFunction · 0.85

Tested by

no test coverage detected