⚡ (engine) Improve engine overall robustness
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { executeChatwoot } from '@/features/blocks/integrations/chatwoot'
|
||||
import { executeGoogleAnalyticsBlock } from '@/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics'
|
||||
import { ChatReply } from 'models'
|
||||
import type { ChatReply } from 'models'
|
||||
|
||||
export const executeIntegrations = async (
|
||||
integrations: ChatReply['integrations']
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { executeCode } from '@/features/blocks/logic/code'
|
||||
import { executeRedirect } from '@/features/blocks/logic/redirect'
|
||||
import { ChatReply } from 'models'
|
||||
import type { ChatReply } from 'models'
|
||||
|
||||
export const executeLogic = async (logic: ChatReply['logic']) => {
|
||||
if (logic?.codeToExecute) {
|
||||
|
6
packages/js/src/utils/guessApiHost.ts
Normal file
6
packages/js/src/utils/guessApiHost.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { env } from 'utils'
|
||||
|
||||
const cloudViewerUrl = 'https://viewer.typebot.io'
|
||||
|
||||
export const guessApiHost = () =>
|
||||
env('VIEWER_URL')?.split(',')[0] ?? cloudViewerUrl
|
@ -1,12 +1,12 @@
|
||||
import {
|
||||
Background,
|
||||
BackgroundType,
|
||||
ChatTheme,
|
||||
ContainerColors,
|
||||
GeneralTheme,
|
||||
InputColors,
|
||||
Theme,
|
||||
} from 'models'
|
||||
import { BackgroundType } from 'models/features/typebot/theme/enums'
|
||||
|
||||
const cssVariableNames = {
|
||||
general: {
|
||||
|
Reference in New Issue
Block a user