Deploying
Static hosting
Deploy Foldocs to object storage, a CDN, or any directory-index host.
Build the site
Run the production build and upload the complete dist directory without
rewriting file names.
pnpm buildConfigure the host
Configure these host behaviors:
Serve
/path/index.htmlwhen/pathis requested.Preserve
.md,.json,.xml, font, image, and hashed asset content types.Cache hashed assets immutably and HTML with a shorter policy.
Return
dist/404.htmlor the platform's 404 response for unknown paths.
Preserve static routing
Do not route every request to the root index.html; that would discard the
direct-navigation and no-JavaScript guarantees of prerendering.
Last updated Aug 2, 2026