The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
const DEFAULT_SITE_URL = 'https://twenty.com';
export const getSiteUrl = (): string => {
const configured = process.env.NEXT_PUBLIC_WEBSITE_URL;
if (configured === undefined || configured === '') return DEFAULT_SITE_URL;
return configured.endsWith('/') ? configured.slice(0, -1) : configured;
};