Deployment
Once your Docsta documentation site is set up and configured, you're ready to go live. Docsta works seamlessly with all major hosting platforms—whether you're using Vercel, Netlify, or your own custom server.
1. Deploying to Vercel (Recommended)
Vercel is the fastest and easiest way to deploy a Next.js app. Follow these steps:
Step 1: Push to GitHub
Make sure your project is version-controlled and pushed to a Git repository (e.g., GitHub, GitLab, Bitbucket).
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/your-username/your-repo.git
git push -u origin main
Step 2: Import into Vercel
- Go to vercel.com/import
- Select your Git repository
- Set your environment variables (
NEXT_PUBLIC_SANITY_PROJECT_ID, etc.) - Click Deploy
That’s it—your documentation site is now live and automatically updates with every push.
2. Deploying to Netlify
Prefer Netlify? No problem.
- Push your code to GitHub
- Go to netlify.com and connect your repository
- Set the following build settings:
- Add environment variables in Site Settings > Environment
npm run build //Build Command
.next //Publish Directory3. Building Locally for Production
You can also test the production build locally before deploying:
npm run build
npm startYour production-ready site will be available at http://localhost:3000.
4. Sanity Studio Deployment (Optional)
If you're using Sanity as your CMS, deploy your Studio separately:
cd sanity
npx sanity deployThis gives you a hosted Studio at a unique .sanity.studio subdomain or a custom domain of your choice.
With your project deployed, you’re ready to share beautiful, blazing-fast documentation with the world.
👉 Next Up: Learn how to add new pages, structure your docs, and grow your knowledge base.
What did you think of this content?
It was helpful
It was not helpful
I have a feedback