DevStacked
Guides & tutorials

Practical guides for
Next.js, Supabase & Stripe

Implementation-driven guides based on real project experience — architecture decisions, integration walkthroughs, and the mistakes worth avoiding.

41 guides

AuthenticationWeb SecuritySessions15 min read

What Is Authentication? A Beginner's Guide (2026)

What is authentication? Learn how it works, the difference from authorization, common methods (sessions, JWT, OAuth/OIDC, passkeys), and how to implement it in Next.js.

AWS S3Supabase StorageCloudinary23 min read

S3 vs Supabase Storage vs Cloudinary (2026 Guide)

Compare S3, Supabase Storage, and Cloudinary for Next.js apps — pricing, setup, image optimization, and which one to pick for your project in 2026.

authjsbetter-authnextauth18 min read

Auth.js vs Better Auth in 2026: Which Should You Use?

Compare Auth.js vs Better Auth for Next.js in 2026 - setup, features, passkeys, organizations, and migration tips to help you pick the right auth library.

StripeRefundsDisputes21 min read

Stripe Refunds & Disputes in Next.js 16 (2026)

Learn to handle Stripe refunds and disputes in Next.js 16 - Server Actions, webhook events, evidence submission, and idempotent code you can trust today.

Next.jsMDXnext-mdx-remote-client18 min read

next-mdx-remote-client Guide for Next.js 16 (2026)

Learn how to build an MDX blog in Next.js 16 App Router using next-mdx-remote-client — the maintained alternative to the archived next-mdx-remote package.

Next.jsReactServer Components17 min read

Server vs Client Components in Next.js 16 (2026 Guide)

Learn when to use Server Components vs Client Components in Next.js 16 App Router, with real code examples, common mistakes, and a clear decision framework.

Next.jsAuthenticationJWT23 min read

Session vs JWT: Which Should You Use in Next.js 16?

Session vs JWT in Next.js 16 compared: how each works, real code with jose, Server Actions, and proxy.ts, and how to pick the right one for your app.

llms.txtNext.jsSEO16 min read

llms.txt Explained: What It Is, Who Uses It, and How to Add It to Next.js

llms.txt explained for Next.js developers — what it actually is, who really reads it, and a copy-paste guide to adding one to your App Router site in 2026.

Feature FlagsNext.jsSaaS23 min read

Feature Flags in SaaS: A Beginner's Guide with Next.js 16 (2026)

Learn what feature flags are and how to add them to a SaaS app with Next.js 16 — a Supabase-backed setup, the Vercel Flags SDK, percentage rollouts, and best practices.

nextjserror-handlingtypescript13 min read

Error Handling in Next.js 16: The Complete 2026 Guide

Learn error handling in Next.js 16 with error.tsx, global-error.tsx, not-found.tsx, Server Actions, and Route Handlers — with production-ready code.

ZodYupTypeScript14 min read

Zod vs Yup in 2026: Which Validation Library Should You Use?

Zod vs Yup compared for 2026 — TypeScript inference, bundle size, React Hook Form integration, async validation, and real Next.js code examples.

Next.jsGoogle Tag ManagerGoogle Analytics22 min read

Google Tag Manager & GA4 Setup for Next.js 16 (2026 Guide)

Learn how to set up Google Tag Manager and GA4 in Next.js 16 App Router — GTM container, GA4 property, custom events, and Consent Mode, step by step.

SupabaseFirebaseAuthentication16 min read

Supabase Auth vs Firebase Auth in 2026

Supabase Auth vs Firebase Auth compared for 2026 — setup, pricing, Next.js App Router integration, security, and which one fits your project.

Next.jsAuthenticationRBAC17 min read

Role-Based Access Control (RBAC) in Next.js 16 (2026 Beginner's Guide)

Learn how to implement role-based authorization (RBAC) in Next.js 16 App Router with TypeScript, Auth.js v5, Proxy, Server Actions, Route Handlers, and permissions.

Next.jsSEOGoogle Search Console16 min read

Google Search Console Setup for Next.js (2026 Beginner's Guide)

Learn how to set up Google Search Console for a Next.js 16 App Router site — verification, sitemap.ts, robots.ts, and indexing best practices.

ResendNext.js 16Email29 min read

How to Send Newsletters & Bulk Emails with Resend in Next.js 16

Learn how to send bulk emails with Resend in Next.js 16 using Segments, Topics, Broadcasts, and the Batch API — without hitting rate limits or serverless timeouts.

Next.jsRoute HandlersApp Router16 min read

Route Handlers Explained in Next.js 16 (Beginner's Guide)

Learn Route Handlers in Next.js 16 App Router — the route.ts file convention, HTTP methods, dynamic params, caching with Cache Components, and building a real API.

nextjsimage-optimizationperformance21 min read

Image Optimization in Next.js 16: Beginner's Guide

Learn image optimization in Next.js 16 with next/image — remotePatterns, qualities, preload, AVIF/WebP, and real code examples for beginners.

stripe next.js 16stripe webhooksstripe idempotency21 min read

Stripe Webhook Idempotency Guide for Next.js 16

Handle Stripe webhook idempotency and retries in Next.js 16 — signature verification, idempotency keys, and duplicate-event prevention.

SEONext.jsTechnical SEO18 min read

The Complete Technical SEO Checklist for Next.js Developers (2026 Guide)

A beginner-friendly, step-by-step technical SEO checklist for Next.js apps — crawlability, metadata, structured data, Core Web Vitals, and more.

SEOMetadataOpen Graph8 min read

Open Graph vs Twitter Cards: What's the Difference? (2026 Guide)

A beginner-friendly guide to Open Graph and Twitter Card meta tags — what they do, how they're different, and how to add both correctly in Next.js 16.

Next.jsSEOMetadata13 min read

How to Add Metadata in Next.js 16 (2026 Guide)

Add SEO metadata in Next.js 16 App Router — static metadata, generateMetadata for dynamic pages, Open Graph, Twitter Cards, and common mistakes to avoid.

StripeUsage-Based BillingMetered Billing13 min read

Usage-Based Billing with Stripe (2026 Guide)

Learn how to build usage-based billing with Stripe Meters API in Next.js 16. Track API calls, tokens, or storage and bill customers for actual usage.

Next.jsAuth.jsNextAuth18 min read

How to Add NextAuth (Auth.js v5) in Next.js 16

Add NextAuth (Auth.js v5) to Next.js 16 step by step — providers, sessions, protected routes, proxy.ts, and experimental passkey (WebAuthn) sign-in.

StripePaymentsSaaS17 min read

10 Best Stripe Alternatives in 2026 (Compared)

Comparing Stripe against 10 alternatives — PayPal, Square, Braintree, Adyen, Paddle, and more — on fees, developer experience, and best use case for 2026.

Next.jsAWS S3CloudFront20 min read

How to Display Images from S3 in Next.js 16 (2026 Guide)

Learn 3 ways to display S3-uploaded images in Next.js 16: public URLs, presigned GET links for private files, and CloudFront CDN delivery.

Next.jsAWS S3File Upload20 min read

Next.js 16 AWS S3 File Upload Guide: Presigned URLs, Proxy & Multipart

Learn AWS S3 file uploads in Next.js 16 using server proxy, presigned URLs, and multipart uploads with TypeScript, AWS SDK v3, and production best practices.

Next.jsMDXMDXRemote16 min read

MDX Blog Setup with next-mdx-remote in Next.js 16

Learn how to set up next-mdx-remote in Next.js 16 App Router to render MDX blog posts from the file system, with remark-gfm, custom components, and syntax highlighting.

Next.jsApp RouterRouting11 min read

Next.js 16 Routing Explained: A Complete Beginner's Guide (2026)

Learn Next.js 16 App Router routing from scratch — dynamic routes, nested layouts, route groups, parallel routes, intercepting routes, and catch-all segments with examples.

Next.jsHostingISR13 min read

Best Hosting Platforms for Next.js in 2026: Who Actually Handles ISR & PPR Correctly?

A feature-level comparison of Next.js hosting platforms in 2026 — Vercel, Netlify, Cloudflare, AWS Amplify, Railway, Render, and self-hosting — focused on real ISR and PPR/Cache Components support, not marketing claims.

Next.jsSSRSSG13 min read

Next.js Rendering Strategies Explained: SSR, SSG, CSR, ISR & Cache Components (2026)

A beginner-friendly guide to Next.js rendering strategies — SSR, SSG, CSR, ISR, and Cache Components (PPR) — with simple examples for each.

clerknextauthauth.js10 min read

NextAuth (Auth.js) vs Clerk in 2026: Compared

Compare Clerk vs Auth.js (NextAuth) v5 in 2026 for Next.js 16. Setup time, pricing, middleware security, customization, and which one fits your project.

Next.jsSanityHeadless CMS15 min read

Integrate Sanity CMS with Next.js 16 App Router

Integrate Sanity CMS with the Next.js 16 App Router. A complete 2026 guide covering embedded Sanity Studio, GROQ queries, SanityLive, Portable Text, & async params.

Next.jsStripeSubscriptions17 min read

Stripe Subscriptions Guide for Next.js 16 (2026)

Stripe subscription billing tutorial for Next.js 16 — Checkout Sessions using Server Actions, webhooks, Customer Portal. Full working code, not just API docs.

Next.jsTypeScriptTailwind14 min read

SaaS Starter Architecture with Next.js 2026

Learn how to architect a production-ready SaaS app with Next.js, TypeScript, Tailwind & React Compiler. Folder structure, auth, billing & more.

stripe checkout vs payment elementstripe payment elementstripe checkout10 min read

Stripe Checkout vs Payment Element in 2026: Which One Should You Choose?

Compare Stripe Checkout vs Stripe Payment Element in 2026, now unified under the Checkout Sessions API's three UI modes — hosted, embedded, and Elements. Learn the differences, Next.js implementation, and which one Stripe recommends.

ResendNext.js 16Email13 min read

Resend Email Setup Beginner Guide for Next.js 16

Resend + Next.js 16 tutorial — contact forms, Server Actions, React Email, domain verification, Vercel deploy. Full working code, not just docs.

Next.jsSupabaseTypeScript15 min read

Build a Todo App with Next.js 16 & Supabase

Learn how to build a production-ready Todo App using Next.js 16, Supabase, TypeScript, Tailwind CSS, Server Actions, Authentication, and Row Level Security (RLS).

Next.jsClerkAuthentication9 min read

Add Clerk Authentication to Next.js 16 (2026)

Learn to implement Clerk in Next.js 16. Covers proxy.ts configuration, clerkMiddleware, auth.protect(), server actions, and protected routes.

stripe next.js 16stripe payment elementnext.js stripe tutorial14 min read

Stripe Payment Element Guide for Next.js 16 (2026)

Learn how to integrate Stripe Payment Element in Next.js 16 using Server Actions, Stripe Payment Intents, webhooks, and App Router.

next.jsstripetypeScript11 min read

Stripe Checkout Guide: Next.js 16 + Server Actions

Stripe Checkout tutorial for Next.js 16 App Router — Server Actions, webhook setup, TypeScript, and full working code, not just API reference docs.

Looking for something you can run instead of read?Browse the free tools