Ship and maintain
Deploy to Vercel
Publish the Next.js documentation app on Vercel using Git integration and free Hobby plan defaults.
This starter is a standard Next.js app, so Vercel can deploy it with zero custom build setup.
Prepare the repository
Before you deploy:
npm run type-check
npm run buildCommit your changes and push them to GitHub, GitLab, or Bitbucket.
Import the project
- Open the Vercel dashboard.
- Click Add New Project.
- Import your repository.
- Keep the detected framework as Next.js.
- Keep the default install, build, and output settings.
- Click Deploy.
Vercel creates a production deployment and preview deployments for future branches and pull requests.
Set environment variables
Add only the variables you need:
NEXT_PUBLIC_SITE_URL=https://your-docs-domain.example
OPENAI_API_KEY=
OPENAI_MODEL=gpt-5.4-miniUse your real production URL for NEXT_PUBLIC_SITE_URL. Leave OPENAI_API_KEY unset if you do not want AI chat in production.
Use the free tier
The template is designed for personal and open-source docs sites that fit Vercel's free Hobby plan. Keep the site mostly static, avoid adding paid services unless you need them, and check Vercel's current plan documentation before relying on specific limits.
Add a custom domain
After the first deployment:
- Open the Vercel project.
- Go to Settings.
- Open Domains.
- Add your domain.
- Follow the DNS instructions shown by Vercel.
Next step: Troubleshooting