Loading…

Test

mti_beta — Phase 0 Debug Page (test)

Typed Streams + Manual Connect Debug

Cold-start timing

Phases: html → js → hydrate → providers → powersync-db → powersync-init → auth. On /login without a cached session, PowerSync init is deferred (deferred now).

Collecting cold-start marks after hydration…

Package versions

{
  "winningcrm": "0.3.26",
  "auth": "0.0.0",
  "crmCommands": "0.2.0",
  "voiceAssistant": "0.2.0",
  "ui": "0.0.0",
  "gitSha": "56e7e8c"
}

Footer shows winningcrm only. Workspace packages bump independently when vetted.

Environment Variables Debug (loaded via Vite + centralized lib/env.ts)

VITE_NEON_AUTH_URL (for login / signup / Google)
https://ep-snowy-queen-adr6c544.neonauth.c-2.us-east-1.aws.neon.tech/neondb/auth
VITE_NEON_DATA_API_URL (for direct writes like avatars)
https://ep-snowy-queen-adr6c544.apirest.c-2.us-east-1.aws.neon.tech/neondb/rest/v1
VITE_POWERSYNC_URL
https://69bc3f47f2dc1cca3f5060b3.powersync.journeyapps.com
VITE_POWERSYNC_TOKEN (legacy — now using session token from useUserSessionToken)
MISSING
Parsed user_id from current session token payload:
N/A (no token)
Token Expire Time (decoded.exp):
N/A (no token)

These values come from import.meta.env (Vite-injected). If they show MISSING, the .env file was not loaded when Vite started. Check the terminal where you ran pnpm dev --filter winningcrm — it prints a full env report on startup.

PowerSync local DB

Typed streams, seed buttons, and local tables require a session. Diagnostics above stay available without signing in.

Sign in to load PowerSync panels