mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-12 10:04:45 +08:00
feat: support static website
This commit is contained in:
@@ -4,8 +4,6 @@ export function getBackendBaseURL() {
|
||||
if (env.NEXT_PUBLIC_BACKEND_BASE_URL) {
|
||||
return env.NEXT_PUBLIC_BACKEND_BASE_URL;
|
||||
} else {
|
||||
// Use empty string for same-origin requests through nginx
|
||||
// Paths like /api/models will be handled by nginx proxy
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ export const enUS: Translations = {
|
||||
artifacts: "Artifacts",
|
||||
public: "Public",
|
||||
custom: "Custom",
|
||||
notAvailableInDemoMode: "Not available in demo mode",
|
||||
},
|
||||
|
||||
// Welcome
|
||||
@@ -57,6 +58,7 @@ export const enUS: Translations = {
|
||||
newChat: "New chat",
|
||||
chats: "Chats",
|
||||
recentChats: "Recent chats",
|
||||
demoChats: "Demo chats",
|
||||
},
|
||||
|
||||
// Breadcrumb
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface Translations {
|
||||
artifacts: string;
|
||||
public: string;
|
||||
custom: string;
|
||||
notAvailableInDemoMode: string;
|
||||
};
|
||||
|
||||
// Welcome
|
||||
@@ -52,6 +53,7 @@ export interface Translations {
|
||||
recentChats: string;
|
||||
newChat: string;
|
||||
chats: string;
|
||||
demoChats: string;
|
||||
};
|
||||
|
||||
// Breadcrumb
|
||||
|
||||
@@ -20,6 +20,7 @@ export const zhCN: Translations = {
|
||||
artifacts: "文件",
|
||||
public: "公共",
|
||||
custom: "自定义",
|
||||
notAvailableInDemoMode: "在演示模式下不可用",
|
||||
},
|
||||
|
||||
// Welcome
|
||||
@@ -54,7 +55,8 @@ export const zhCN: Translations = {
|
||||
sidebar: {
|
||||
newChat: "新对话",
|
||||
chats: "对话",
|
||||
recentChats: "最近的聊天",
|
||||
recentChats: "最近的对话",
|
||||
demoChats: "演示对话",
|
||||
},
|
||||
|
||||
// Breadcrumb
|
||||
|
||||
Reference in New Issue
Block a user