Menu

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

  1. Go to vercel.com/import
  2. Select your Git repository
  3. Set your environment variables (NEXT_PUBLIC_SANITY_PROJECT_ID, etc.)
  4. 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.

  1. Push your code to GitHub
  2. Go to netlify.com and connect your repository
  3. Set the following build settings:
  4. Add environment variables in Site Settings > Environment
 npm run build  //Build Command
 .next  //Publish Directory
3. Building Locally for Production

You can also test the production build locally before deploying:

npm run build
npm start

Your 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 deploy

This 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?

like-icon

It was helpful

dislike-icon

It was not helpful

feedback-icon

I have a feedback