Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
feat: add global error handler, sanitize error response in production
valzord129cc2a23ee
diff --git a/backend/server.js b/backend/server.jsindex 2f0160b..8ac631e 100644--- a/backend/server.js+++ b/backend/server.js@@ -14,6 +14,11 @@ import { autoRefreshInstagramTokens } from './services/instagram.js';const app = new Hono();+app.onError((err, c) => {+ console.error('Worker error:', err.message);+ return c.json({ error: 'Internal server error' }, 500);+});+// ── Global middleware ─────────────────────────────────────────────────────────app.use('*', cors());