KnearMe Admin Troubleshooting
Login loops to /login
Section titled “Login loops to /login”Causes:
- Missing/invalid Supabase env vars.
- User lacks
admin_usersrecord. - Session handling bug after auth callback.
Fixes:
- Re-check
.env.localvalues. - Verify admin row exists and role is correct.
- Clear cookies and retry.
Build passes locally but runtime fails in env
Section titled “Build passes locally but runtime fails in env”Cause: wrong deploy-time secrets.
Fix: verify SUPABASE_SERVICE_ROLE_KEY and public keys in deployment platform, then redeploy.
Eval scripts fail
Section titled “Eval scripts fail”Cause: dataset seed mismatch or missing env vars.
Fixes:
pnpm -C apps/knearme-admin seed:datasetspnpm -C apps/knearme-admin eval:runPort conflict on local start
Section titled “Port conflict on local start”If 3020 is occupied, stop conflicting process or run Next with an alternate port for local debugging.