Every growing SaaS gets asked 'do you have an API?' -- here is how to expose a public, authenticated API in your Next.js app with API keys, rate limiting, and a docs page so customers can integrate without emailing your support team.
Almost every SaaS needs a settings page the day after you wire up auth -- here is the architecture for handling profile photo uploads, password changes, and notification preferences in a Next.js app without turning your settings route into spaghetti.
Every SaaS eventually needs a way for support staff to find users and fix account issues without raw database access -- here is how to build a scoped admin panel inside your Next.js codebase instead of paying for and maintaining a separate tool.
How to add a word-of-mouth referral program to your Next.js SaaS -- generating unique referral codes per user, attributing signups to the right referrer, and tracking conversions with Drizzle ORM so you only reward what converts.
How to add admin impersonation to a Next.js SaaS -- issuing a scoped JWT that lets support staff view the app as any user, exiting safely, and audit-logging every session with Drizzle ORM.
How to add passwordless magic link login to a Next.js SaaS -- generating a signed token, sending the login link via Resend, verifying it in a callback route, and expiring used tokens in Drizzle ORM.