feat: support static website

This commit is contained in:
Henry Li
2026-01-24 18:01:27 +08:00
parent c66995bcc0
commit ebda30c7cf
36 changed files with 4889 additions and 92 deletions

View File

@@ -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 "";
}
}

View File

@@ -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

View File

@@ -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

View File

@@ -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