Deployment
Subdomain (docs.example.com)
This project is configured as a standalone site with baseUrl: '/'. Point your docs subdomain (for example docs.yourcompany.com) at the contents of the Docusaurus build/ output.
-
Set the public site URL:
- Edit
docusaurus.config.tsand setdocsSiteUrl/urlto your real docs origin (for examplehttps://docs.pa-agent.dev), or - Set the environment variable
DOCS_URLwhen runningnpm run buildso CI can inject production URLs without editing files.
- Edit
-
Build:
cd docs && npm run build -
Upload
docs/build/to your host (S3 + CloudFront, Netlify, Vercel static, Nginxroot, and so on). -
DNS: create a CNAME (or A/ALIAS) for
docsto that host.
The landing page is served at /, Docusaurus docs at /docs/..., and the Open Source marketing page at /opensource.
Same host as another app
If you must mount under a path (for example https://www.example.com/docs-site/), set baseUrl in docusaurus.config.ts to that path and re-test internal links.