feat: init repo
deploy / deploy (push) Canceled after 0s

This commit is contained in:
2026-11-10 19:56:03 +01:00
commit 858d862fed
166 changed files with 13336 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/** Point d'entrée de l'API CRM. Surchargeable via VITE_CRM_API_URL au build. */
const host = typeof window !== "undefined" ? window.location.hostname : "";
const isLocal = host === "localhost" || host === "127.0.0.1" || host === "0.0.0.0";
const base =
(import.meta.env.VITE_CRM_API_URL as string | undefined) ??
(isLocal ? "http://localhost:8082" : "https://crm.cohaise.dev");
const trimmed = base.replace(/\/+$/, "");
/** Endpoint public qui crée un prospect depuis le formulaire de contact. */
export const LEADS_ENDPOINT = `${trimmed}/api/crm/leads`;