19 lines
861 B
TypeScript
19 lines
861 B
TypeScript
import "@fontsource-variable/inter";
|
|
import "@fontsource-variable/jetbrains-mono";
|
|
import { installChunkRecovery } from "@/lib/chunk-recovery";
|
|
import { bootstrapAppearance } from "@/services/appearance-bootstrap";
|
|
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 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");
|
|
void appearanceReady.catch(() => undefined);
|
|
}
|