Development #24

Merged
kyle merged 35 commits from development into main 2026-08-28 10:40:10 -05:00
Showing only changes of commit 5e9d030297 - Show all commits
+3 -4
View File
@@ -2,7 +2,8 @@ import type { AnyRouter } from "@tanstack/react-router";
// Provider-free by design: renders nothing and mounts no React context, so it
// cannot disturb the LinguiProvider -> AuthProvider order. Browser-only; every
// entry point is a no-op during SSR and in dev unless VITE_TELEMETRY_DEV=1.
// entry point is a no-op during SSR. Runs in dev too - events go to the same
// PB the app is pointed at, which in dev is the local instance.
type QueuedEvent = Record<string, unknown> & { kind: "event" | "error" | "vital" };
@@ -19,9 +20,7 @@ let lastRouteId: string | undefined;
let errorCount = 0;
const recentErrors = new Map<string, number>();
const isEnabled = (): boolean =>
typeof window !== "undefined" &&
(import.meta.env.PROD || import.meta.env.VITE_TELEMETRY_DEV === "1");
const isEnabled = (): boolean => typeof window !== "undefined";
const getSessionId = (): string => {
try {