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.

19 guides

StripeUsage-Based BillingMetered Billing13 min read

How to Build 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.jsNextAuth14 min read

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

Learn how to add Auth.js (NextAuth v5) authentication to a Next.js 16 App Router project step by step — providers, sessions, protected routes, and proxy.ts, explained for beginners.

StripePaymentsSaaS15 min read

Stripe vs 10 Alternatives: Which One Is Right for Your Business? (2026)

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

Complete MDX Blog Setup with next-mdx-remote and Next.js 16 (2026 Beginner Guide)

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.js7 min read

Clerk vs NextAuth (Auth.js) in 2026: Which One Should You Choose?

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

How to Integrate Sanity CMS with Next.js 16 App Router (2026 Guide)

Learn how to integrate Sanity CMS with Next.js 16 App Router. Set up an embedded Sanity Studio, write GROQ queries, render Portable Text, add TypeScript types, and build a fully content-driven blog.

Next.jsStripeSubscriptions14 min read

Stripe Subscriptions in Next.js 16: Complete SaaS Billing Guide (2026)

Learn how to integrate monthly subscription billing with Stripe Checkout Sessions in Next.js 16 using Server Actions, webhooks, and TypeScript.

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. Learn the differences, pros, cons, security, performance, Next.js implementation, and which Stripe integration is best for your project.

ResendNext.js 16Email13 min read

How to Setup Resend Email in Next.js 16 (2026 Complete Beginner Guide)

Learn how to send emails in Next.js 16 using Resend. Build contact forms, use Server Actions, create React Email templates, verify domains, and deploy to Vercel with step-by-step examples.

Next.jsSupabaseTypeScript15 min read

Build a Todo App with Next.js 16 and Supabase (2026 Guide)

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

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

Learn how to add authentication in Next.js 16 using Clerk with protected routes, server components, server actions, and social login.

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

How to Integrate Stripe Payment Element with Next.js 16 (2026 Edition)

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

next.jsstripetypeScript9 min read

How to Integrate Stripe Checkout with Next.js 16 (2026 Edition)

Learn how to integrate Stripe Checkout with Next.js 16 App Router using Server Actions, TypeScript, Webhooks, and secure payment flows for SaaS applications.

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