fix: fix web api prcess url & optmize doc image load performence (#3003)

This commit is contained in:
alanchen
2026-03-26 19:08:29 +08:00
committed by GitHub
parent 07dc04b15d
commit eb5920bcb8
112 changed files with 283 additions and 202 deletions

View File

@@ -10,7 +10,7 @@ const nextConfig = {
ignoreBuildErrors: true,
},
env: {
API_BASE_URL: "http://127.0.0.1:5670",
API_BASE_URL: process.env.API_BASE_URL,
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
GET_USER_URL: process.env.GET_USER_URL,

View File

@@ -480,7 +480,7 @@ const SharePage: NextPage = () => {
useEffect(() => {
if (!token) return;
const apiBase = process.env.API_BASE_URL ?? 'http://127.0.0.1:5670';
const apiBase = process.env.API_BASE_URL ?? '';
setLoading(true);
fetch(`${apiBase}/api/v1/chat/share/${token}`)
.then(res => {