Skip to main content

NAZLE.

Architecture4 min readSample content

Why I Built a Custom CMS with Next.js and Supabase Instead of Using a Heavy Platform

Trade-offs between Git-based MDX, headless CMS platforms, and a lightweight custom admin panel backed by PostgreSQL.

Written by Adam Fikar

The real requirement

A personal portfolio should stay fast for visitors while remaining effortless for the owner to update. Editing raw Markdown in Git works well for developers, but a dedicated browser CMS makes publishing case studies and engineering notes much smoother.

Keeping it fast with cache tags

Instead of hitting PostgreSQL on every visitor page load, public routes read through cached Server Components and invalidate cleanly via revalidateTag whenever a change is saved in /admin.

import { revalidateTag } from "next/cache";
 
export async function publishInsight() {
  // Save to Supabase PostgreSQL...
  revalidateTag("insights", "max");
}

What I avoided

No bloated plugin ecosystem, no separate CMS server to maintain, and full Row Level Security enforced directly at the database layer.