fix(frontend): address static demo PR review comments

This commit is contained in:
foreleven
2026-05-22 22:21:07 +08:00
parent 55a4149be4
commit bf94ae43fa
4 changed files with 92 additions and 7 deletions
@@ -1,8 +1,12 @@
import { isStaticWebsiteOnly } from "@/core/static-mode";
import { DEMO_THREAD_IDS } from "@/core/threads/static-demo";
import { ChatProviders } from "./providers";
export function generateStaticParams() {
if (!isStaticWebsiteOnly()) {
return [];
}
return DEMO_THREAD_IDS.map((thread_id) => ({ thread_id }));
}