Build & Deploy

How to build for production and deploy your template.

Building for Production

npm run build

This creates an optimized production build using Turbopack. Verify there are zero build errors before deploying.

npm run start

Test the production build locally before pushing.

Deploying to Vercel

Templates are optimized for Vercel. The fastest path:

  1. Push your project to GitHub.
  2. Go to vercel.com/new and import your repo.
  3. Set environment variables if needed.
  4. Deploy. Build settings are pre-configured.

Other Platforms

Templates work on any platform that supports Next.js:

  • Netlify - Use the Next.js runtime plugin
  • Railway - Auto-detects Next.js
  • Docker - Use the Next.js standalone output mode
  • AWS Amplify - Supports Next.js SSR

Environment Variables

Set your environment variables in your hosting platform dashboard. Never commit .env.local to git. Use .env.example as a reference for required variables.

Custom Domain

After deploying, add your custom domain in your hosting platform settings. On Vercel, go to your project settings and add the domain under the Domains tab.