Require session on APIs, scope KPIs/activos/simulate to the user tenant, strip real JWTs from .env.example, and add health/smoke/docs for 4Ventures ops. Co-authored-by: Cursor <cursoragent@cursor.com>
1.0 KiB
1.0 KiB
4Ventures — Centro de Mando del Cliente
Portal ejecutivo multi-tenant · source of truth para app.4ventures.es.
Operador: marketing@4ventures.es
Next.js 15 + Supabase + n8n (agentes/webhooks fuera de este repo).
Quick start
cp .env.example .env.local # keys rotadas — nunca las del PDF histórico
npm install
npm run dev
Health: GET /api/health
Docs
Rutas
| Path | Uso |
|---|---|
/login |
Supabase Auth |
/dashboard/kpis |
KPIs |
/dashboard/estrategia |
Targets + simulador |
/dashboard/activos |
Docs aprobados (RLS) |
/dashboard/creatives |
Creatividades (en curso) |
/dashboard/asistente |
Chat RPC |
/dashboard/agencia |
Cross-tenant (admin/team) |
/dashboard/calendario |
Editorial RRSS |
/_4v_attr.js |
Script atribución |