🔥 Remove VIEWER_URL_INTERNAL variable
BREAKING CHANGE: NEXT_PUBLIC_VIEWER_INTERNAL does not exist anymore as typebot.io now directly points to the viewer project
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { getRuntimeVariable } from '@typebot.io/env/getRuntimeVariable'
|
||||
|
||||
const cloudViewerUrl = 'https://viewer.typebot.io'
|
||||
const cloudViewerUrl = 'https://typebot.io'
|
||||
|
||||
export const guessApiHost = () =>
|
||||
getRuntimeVariable('NEXT_PUBLIC_VIEWER_INTERNAL_URL') ??
|
||||
getRuntimeVariable('NEXT_PUBLIC_VIEWER_URL')?.split(',')[0] ??
|
||||
cloudViewerUrl
|
||||
getRuntimeVariable('NEXT_PUBLIC_VIEWER_URL')?.split(',')[0] ?? cloudViewerUrl
|
||||
|
||||
Reference in New Issue
Block a user