Blog
Technical writing on Web3, AI, and building things. Written by Uvin Vindula.
130 articles · 8 in Next.js & React
A comprehensive guide to Next.js 16 from someone who migrated four production apps. Covers App Router improvements, React 19 integration, Server Components, streaming patterns, performance gains, and a practical migration guide from Next.js 15.
A battle-tested comparison of Next.js authentication approaches in 2026. Covers Supabase Auth, NextAuth/Auth.js, Clerk, and custom JWT implementations with real code examples. Includes session management strategies, server-side auth in App Router, protected API routes, and the RLS + auth combo that eliminates an entire class of security bugs. Honest opinions from shipping production apps with every approach.
A production-tested guide to Next.js caching in 2026. Covers ISR with revalidate, on-demand revalidation with tags, Sanity webhook integration, fetch cache options, unstable_cache for database queries, Redis/Upstash patterns, and the common bugs that silently break your cache. Real strategies from shipping dozens of production sites.
How I handle every form in production with Next.js Server Actions. Covers Zod validation, useFormStatus loading states, useOptimistic updates, error handling, file uploads, and the architecture I use across EuroParts Lanka, iamuvin.com, and every client project.
Everything I have learned about next/image after shipping dozens of production sites. Covers the sizes prop most developers get wrong, external domain configuration, blur placeholders, priority loading, responsive srcSet, Sanity CMS integration, and real performance numbers.
Battle-tested Next.js middleware patterns I use on every production app — authentication redirects, rate limiting at the edge, geo-based routing, bot detection, A/B testing, and a complete middleware.ts template you can drop into any project.
Battle-tested streaming and Suspense patterns from production Next.js apps. Learn how to get LCP under 1.5 seconds by streaming expensive data fetches while showing an instant shell. Real examples from EuroParts Lanka and FreshMart.
A hands-on guide to React Server Components from someone who uses them on every project. Covers the Server vs Client decision tree, data fetching patterns, composition strategies, streaming, and real performance numbers from EuroParts Lanka and iamuvin.com.