Introduction
I’m Kaleb, a web developer in Pompano Beach, Florida, running Dream Futures Tech. A few months ago I rebuilt my own business site into a lightweight content‑management system (CMS) using Next.js 14’s app router, Prisma, and Incremental Static Regeneration (ISR). The goal was simple: write blog posts locally, keep drafts private, publish with a single click, and have the static pages regenerate automatically.
Below I walk through the pieces I assembled – the Prisma schema, the API routes for drafts and publishing, the ISR configuration, and the revalidatePath call that forces a fresh render after each publish. All code is what I actually run on my home automation server; I’m not fabricating benchmarks or client data.
1. Setting up Prisma
First I added Prisma to the project and created a SQLite database (perfect for a small site).…