diff --git a/.env.example b/.env.example index ceacae501a..a114365bdf 100644 --- a/.env.example +++ b/.env.example @@ -362,10 +362,13 @@ TASKER_ENABLE_EMAILS=0 # Ratelimiting via unkey UNKEY_ROOT_KEY= - # Used for Cal.ai Enterprise Voice AI Agents # https://retellai.com RETELL_AI_KEY= # Used to disallow emails as being added as guests on bookings BLACKLISTED_GUEST_EMAILS= + +# Custom privacy policy / terms URLs (for self-hosters: change to your privacy policy / terms URLs) +NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL= +NEXT_PUBLIC_WEBSITE_TERMS_URL= diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsx index dc499a16e7..49015ba22a 100644 --- a/apps/web/pages/signup.tsx +++ b/apps/web/pages/signup.tsx @@ -23,8 +23,9 @@ import { URL_PROTOCOL_REGEX, IS_CALCOM, WEBAPP_URL, - WEBSITE_URL, CLOUDFLARE_SITE_ID, + WEBSITE_PRIVACY_POLICY_URL, + WEBSITE_TERMS_URL, } from "@calcom/lib/constants"; import { fetchUsername } from "@calcom/lib/fetchUsername"; import { pushGTMEvent } from "@calcom/lib/gtm"; @@ -541,14 +542,14 @@ export default function Signup({ Terms , Privacy Policy. , diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx index 6d29abf757..427a71e5dd 100644 --- a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx +++ b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx @@ -5,7 +5,7 @@ import { useMemo, useState } from "react"; import type { FieldError } from "react-hook-form"; import type { BookerEvent } from "@calcom/features/bookings/types"; -import { IS_CALCOM, WEBSITE_URL } from "@calcom/lib/constants"; +import { WEBSITE_PRIVACY_POLICY_URL, WEBSITE_TERMS_URL } from "@calcom/lib/constants"; import getPaymentAppData from "@calcom/lib/getPaymentAppData"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Alert, Button, EmptyScreen, Form } from "@calcom/ui"; @@ -118,7 +118,7 @@ export const BookEventForm = ({ /> )} - {!isPlatform && IS_CALCOM && ( + {!isPlatform && (