Next.js apps build to optimized server and static assets. Vercel is the zero-config path; Node, Docker, and platforms like Railway or AWS work with next start or standalone output.
Build pipeline
next build— compile routes, static pages, server bundlesnext start— production Node server (or platform adapter)
Standalone output
// next.config.js
module.exports = { output: 'standalone' };
Produces a minimal deployable folder for containers—copy .next/standalone plus static assets.
Checklist before go-live
- Env vars set in hosting dashboard
- Error monitoring (Sentry, etc.)
- Analytics and Core Web Vitals review
- Preview deployments for PRs
Self-check
- What command produces the production build?
- When is standalone output useful?
Challenge
Deploy checklist
- Run the default code to print the checklist object.
- Add one item you would verify before your first deploy.
Done when: terminal shows an updated deployment checklist.