How to build for production and deploy your template.
npm run buildThis creates an optimized production build using Turbopack. Verify there are zero build errors before deploying.
npm run startTest the production build locally before pushing.
Templates are optimized for Vercel. The fastest path:
Templates work on any platform that supports Next.js:
Set your environment variables in your hosting platform dashboard. Never commit .env.local to git. Use .env.example as a reference for required variables.
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.