From 471dedccc8964bffa43c5baaeb955d6d34688430 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 20 Jun 2023 07:28:35 +0200 Subject: [PATCH] :pencil: Change CNAME value to vercel domain To avoid CNAME Cross-User ban from Cloudflare --- .../customDomains/components/CustomDomainModal.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/builder/src/features/customDomains/components/CustomDomainModal.tsx b/apps/builder/src/features/customDomains/components/CustomDomainModal.tsx index cf01b924445..1cdf0b21fd0 100644 --- a/apps/builder/src/features/customDomains/components/CustomDomainModal.tsx +++ b/apps/builder/src/features/customDomains/components/CustomDomainModal.tsx @@ -17,7 +17,6 @@ import { } from '@chakra-ui/react' import { useToast } from '@/hooks/useToast' import { useEffect, useRef, useState } from 'react' -import { env, getViewerUrl } from '@typebot.io/lib' import { createCustomDomainQuery } from '../queries/createCustomDomainQuery' const hostnameRegex = @@ -117,13 +116,7 @@ export const CustomDomainModal = ({ Value - - { - new URL( - env('VIEWER_INTERNAL_URL') ?? getViewerUrl() ?? '' - ).hostname - } - + cname.vercel-dns.com ) : (