🔧 Update main viewer domain to typebot.co
This commit is contained in:
@@ -448,7 +448,9 @@ const Webhook = ({
|
|||||||
credentialsId: string
|
credentialsId: string
|
||||||
}) => {
|
}) => {
|
||||||
const { workspace } = useWorkspace()
|
const { workspace } = useWorkspace()
|
||||||
const webhookUrl = `${env.NEXT_PUBLIC_VIEWER_URL[0]}/api/v1/workspaces/${workspace?.id}/whatsapp/${credentialsId}/webhook`
|
const webhookUrl = `${
|
||||||
|
env.NEXT_PUBLIC_VIEWER_URL.at(1) ?? env.NEXT_PUBLIC_VIEWER_URL[0]
|
||||||
|
}/api/v1/workspaces/${workspace?.id}/whatsapp/${credentialsId}/webhook`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack spacing={6}>
|
<Stack spacing={6}>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export const parseApiHost = (
|
|||||||
customDomain: Typebot['customDomain'] | undefined
|
customDomain: Typebot['customDomain'] | undefined
|
||||||
) => {
|
) => {
|
||||||
if (customDomain) return new URL(`https://${customDomain}`).origin
|
if (customDomain) return new URL(`https://${customDomain}`).origin
|
||||||
return env.NEXT_PUBLIC_VIEWER_URL[0]
|
return env.NEXT_PUBLIC_VIEWER_URL.at(1) ?? env.NEXT_PUBLIC_VIEWER_URL[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const parseApiHostValue = (
|
export const parseApiHostValue = (
|
||||||
|
|||||||
Reference in New Issue
Block a user