Deploy User Docs on Vercel (Static)
This page is only for publishing the Docusaurus user documentation site. It does not deploy the AgentHub backend service.
Goal
Use userdocs/ as a pure static site generator and host the output on Vercel.
Local Parity Check
Before pushing, verify local static build:
cd userdocs
npm install
npm run build
Build output should appear in userdocs/build/.
Vercel Project Settings
Use these values in Vercel:
- Root Directory:
userdocs - Install Command:
npm install - Build Command:
npm run build - Output Directory:
build
Branch Workflow Recommendation
- Use preview deployments for feature branches
- Use production deployment from your main branch
- Review sidebar links and major pages in preview before promote
Common Failure Cases
- Wrong root directory (not
userdocs) - Wrong output directory (must be
build) - Missing dependencies due to skipped
npm install
Validation After Deploy
- Open the deployed URL.
- Navigate every sidebar category once.
- Confirm no broken links or 404 pages.
- Confirm deployment page URLs are stable after next build.