import { prisma } from "@/lib/db"; export const dynamic = "force-dynamic"; export default async function ClientesPage() { const clientes = await prisma.cliente.findMany({ orderBy: { createdAt: "desc" }, include: { cotizaciones: { select: { id: true } } }, }); return (
{clientes.length} clientes registrados
Los clientes se crean automaticamente al generar cotizaciones