fix(deploy): 前端资源 - 保留旧版本分片并恢复加载
This commit is contained in:
1 parent
5b38272654
commit
e8c2c40715
8 files changed
+137
-6
No files matched your search
+4
-1
@@ -1,12 +1,15 @@
|
||||
import "@fontsource-variable/inter";
|
||||
import "@fontsource-variable/jetbrains-mono";
|
||||
import { installChunkRecovery } from "@/lib/chunk-recovery";
|
||||
import { bootstrapAppearance } from "@/services/appearance-bootstrap";
|
||||
import { isIsolatedDirectorRepro } 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 {
|
||||
// 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"));
|
||||
void appearanceReady.then(() => import("./application"));
|
||||
}
|
||||
Reference in new issue
Block a user