fix(build): keep supertokens server init out of the client module graph

- ensureSuperTokensBackend moved to the health route handler; the dynamic
  imports in exclusions and alerts dragged recipes into the client build
This commit is contained in:
2026-08-26 18:58:31 -07:00
parent 3d8ee52a15
commit 4106c3c846
7 changed files with 34 additions and 36 deletions
+2
View File
@@ -1,11 +1,13 @@
import { createFileRoute } from "@tanstack/react-router";
import { ensureTelemetryScheduler } from "@/lib/telemetry/scheduler.server";
import { getHealthSnapshot } from "@/lib/telemetry/health.server";
import { ensureSuperTokensBackend } from "@/lib/supertokens/server";
export const Route = createFileRoute("/api/health")({
server: {
handlers: {
GET: async () => {
ensureSuperTokensBackend();
ensureTelemetryScheduler();
const snapshot = await getHealthSnapshot();