fix(welcome): 欢迎页沿用站点外观与 SEO 标题

合并 #683:欢迎页沿用站点外观与 SEO 标题
This commit is contained in:
Catlaxy AI
2026-10-06 09:23:18 +08:00
committed by GitHub
parent 19841cb9c5
commit 208da8d00d
3 changed files with 48 additions and 3 deletions

View File

@@ -7,8 +7,10 @@ import { isIsolatedPrevisRepro } from "@/lib/dev-repro";
installChunkRecovery();
// The public film entry checks its availability independently of workspace bootstrap.
if (/^\/welcome\/?$/.test(window.location.pathname)) void import("./welcome-application");
else {
if (/^\/welcome\/?$/.test(window.location.pathname)) {
void bootstrapAppearance().catch(() => undefined);
void import("./welcome-application");
} else {
// The backend-free DEV lab must not make requests before AppProviders isolates it.
const appearanceReady = isIsolatedPrevisRepro(import.meta.env.DEV, window.location.pathname) ? Promise.resolve() : bootstrapAppearance();
void import("./application");