Skip to content

Deploy the static site

Docfuse is host-independent. The build command is pnpm docs:build and the default publish directory is .docfuse/dist/.

Generate host guidance

bash
pnpm exec docfuse deploy

This writes platform examples and instructions under .docfuse/deploy/. It does not create an account, upload files, or modify a remote environment.

Platform settings

table
GitHub Pagespnpm docs:build.docfuse/dist
Cloudflare Pagespnpm docs:build.docfuse/dist
Vercelpnpm docs:build.docfuse/dist
Netlifypnpm docs:build.docfuse/dist
Nginx / object storageUpload after CI build.docfuse/dist

The host must serve directory index.html files and must not use an SPA fallback. For a subpath deployment, set a matching basePath, such as /project/, in both Docfuse and the CDN or reverse proxy.

Translate generated redirects.json into platform 301/308 rules. See Security boundaries for private documentation and CSP.