
Minimal production-ready template for a Next.js app
Introduction I'm a full-stack developer and have been doing web development since around 2014. In recent years I've been focusing more on in-house projects, freelance work, and my own micro-products. A constant pain point is the lack of a convenient, ideally free, way to spin up yet another project for a task without getting bogged down in infrastructure. Over several years I've brought a few things to a solid, reusable state: Automated deploy to a server (including blue/green); Issuing and renewing SSL certificates for the domain; A minimal metrics stack (Grafana, Prometheus, Loki, etc.) — optional, controlled by flags. The result is two battle-tested boilerplates: Nest.js and Next.js. In this article I'm sharing the second one. To keep infrastructure simple, the template is built around a single stack: Next.js, auth, and database access within one application. This kind of template may not be anything new, but if it saves someone a few hours on deploy and environment setup, I'll be g
Continue reading on Dev.to
Opens in a new tab


