Blog

Step-by-step guides, quick tips, updates on what I’m building, and the occasional personal post. Code blocks have a copy button, so you can follow along in your own project.

6 posts
NEWAI in your app21 min read

Add an AI assistant to your Next.js app, with limits that protect your bill

A streaming Claude assistant in Next.js 16: the key server-side, saved conversations, per-visitor limits, a daily token budget and clear errors.Ali Murtaza · Nov 21, 2026
Security27 min read

8 security holes in a Next.js app, and how to close each one

Eight security holes in Next.js apps, each opened, proved and closed: open redirects, server actions, rate limits, XSS, CSV injection, SSRF, secrets, headers.Ali Murtaza · Nov 18, 2026
Next.js caching16 min read

Caching in Next.js 16, explained by the errors you’ll hit

use cache, cacheLife, cacheTag, updateTag and Suspense in Next.js 16 — with every error message the build gives you, and its fix.Ali Murtaza · Nov 15, 2026
Stripe12 min read

Take payments in Next.js with Stripe: Checkout, webhooks and orders that can’t be faked

Stripe Checkout, a verified webhook, orders recorded once, and access only for real payments — step by step on Next.js 16.Ali Murtaza · Nov 12, 2026
Next.js · Prisma13 min read

Next.js 16 + Prisma 7 + Postgres: from a fresh app to production

A database-backed Next.js 16 app with Prisma 7 and Neon Postgres, from install to deploy, step by step.Ali Murtaza · Nov 9, 2026
Better Auth16 min read

Better Auth in Next.js: sign-up, sessions, GitHub and admin roles

Sign-up, sign-in, protected pages, an admin role and GitHub, step by step on a fresh Next.js 16 app.Ali Murtaza · Nov 6, 2026
Get new posts by email

Get an email when I publish something new. No spam, unsubscribe anytime.