moving
Some checks failed
Installer Smoke / installer-smoke (push) Has been cancelled

This commit is contained in:
Oleg Maslov
2026-09-02 10:10:29 +02:00
commit 0c3e2ead3b
3841 changed files with 970576 additions and 0 deletions

19
apps/web/src/main.tsx Normal file
View File

@@ -0,0 +1,19 @@
// P1b D3: must be the FIRST import — arms the adapter's request-deferral gate
// before any other module in the import graph can evaluate (see boot-connect.ts).
import "./boot-connect";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import { applyStoredThemeEarly } from "@/providers/ThemeProvider";
// Apply the persisted theme before first paint to avoid a flash of the wrong
// theme (warm graphite/dark default; warm paper for light).
applyStoredThemeEarly();
createRoot(document.getElementById("root")!).render(<App />);
// Initialize PostHog cloud analytics (DAY0-04).
// Non-blocking and lazy-loaded so analytics never bloats the startup bundle.
void import("@/lib/posthog")
.then(({ initPostHog }) => initPostHog())
.catch(() => {});