OpenSana Docs
UseDeployment

Deploy the Docs Site

Build and deploy the OpenSana documentation site.

The docs site (apps/docs) is a static site built with Fumadocs and React Router. It has no backend dependencies — it can be deployed to any static hosting provider.

Build

From the repository root:

pnpm docs:build

The site is fully pre-rendered. Build output goes to apps/docs/build/client/.

Deploy to Vercel

Import the repository in Vercel and configure:

SettingValue
Root Directoryapps/docs
Build Commandnpx react-router build
Output Directorybuild/client
Install CommandLeave as default

No environment variables are required. Click Deploy.

The build command must use npx react-router build (not react-router build) because the binary is not globally installed.

Deploy Elsewhere

Since the output is static HTML in build/client/, you can deploy it to any static hosting provider (Cloudflare Pages, Netlify, GitHub Pages, etc.). Point the provider at the build/client/ directory after running the build.

Content

Documentation content lives in apps/docs/content/docs/ as .mdx files. Each folder has a meta.json that controls navigation order and section titles.

On this page