fix(web): 导演台检查 - 隔离开发复现入口的外观初始化请求
This commit is contained in:
1 parent
104396ba2f
commit
1be8ffce3b
6 files changed
+96
-3
No files matched your search
+6
-1
@@ -1,7 +1,12 @@
|
||||
import "@fontsource-variable/inter";
|
||||
import "@fontsource-variable/jetbrains-mono";
|
||||
import { bootstrapAppearance } from "@/services/appearance-bootstrap";
|
||||
import { isIsolatedDirectorRepro } from "@/lib/dev-repro";
|
||||
|
||||
// The public film entry checks its availability independently of workspace bootstrap.
|
||||
if (/^\/welcome\/?$/.test(window.location.pathname)) void import("./welcome-application");
|
||||
else void bootstrapAppearance().finally(() => import("./application"));
|
||||
else {
|
||||
// The backend-free DEV lab must not make requests before AppProviders isolates it.
|
||||
const appearanceReady = isIsolatedDirectorRepro(import.meta.env.DEV, window.location.pathname) ? Promise.resolve() : bootstrapAppearance();
|
||||
void appearanceReady.finally(() => import("./application"));
|
||||
}
|
||||
Reference in new issue
Block a user