Skip to content

The open alternative to Salesforce, designed for AI.

303 B
Raw Blame
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;
};