Skip to content

Commit

Permalink
📝 Change CNAME value to vercel domain
Browse files Browse the repository at this point in the history
To avoid CNAME Cross-User ban from Cloudflare
  • Loading branch information
baptisteArno committed Jun 20, 2023
1 parent f1b643c commit 471dedc
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -117,13 +116,7 @@ export const CustomDomainModal = ({
</Stack>
<Stack>
<Text fontWeight="bold">Value</Text>
<Text>
{
new URL(
env('VIEWER_INTERNAL_URL') ?? getViewerUrl() ?? ''
).hostname
}
</Text>
<Text>cname.vercel-dns.com</Text>
</Stack>
</HStack>
) : (
Expand Down

0 comments on commit 471dedc

Please sign in to comment.