From 7ba068c3e40737e3023e5c40d4209d2026904988 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 7 Sep 2023 14:56:38 +0800 Subject: [PATCH] fix: self host embedding missing base url config (#1116) --- web/app/components/app/overview/embedded/index.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/app/components/app/overview/embedded/index.tsx b/web/app/components/app/overview/embedded/index.tsx index 09c6838e1f..2acaad9e01 100644 --- a/web/app/components/app/overview/embedded/index.tsx +++ b/web/app/components/app/overview/embedded/index.tsx @@ -7,6 +7,7 @@ import Modal from '@/app/components/base/modal' import copyStyle from '@/app/components/app/chat/copy-btn/style.module.css' import Tooltip from '@/app/components/base/tooltip' import { useAppContext } from '@/context/app-context' +import { IS_CE_EDITION } from '@/config' // const isDevelopment = process.env.NODE_ENV === 'development' @@ -30,7 +31,15 @@ const OPTION_MAP = { scripts: { getContent: (url: string, token: string, isTestEnv?: boolean) => `