Skip to content

Deployment

This docs site is designed to deploy cleanly to Cloudflare Pages from the cloudapp3/vmdocs documentation monorepo.

Cloudflare Pages settings

SettingValue
Framework presetVitePress or None
Build commandpnpm docs:build:vminfo
Build output directorysites/vminfo/docs/.vitepress/dist
Root directory/
Node.js version20 or newer

If your Pages project needs to install dependencies during build, use:

bash
corepack enable && pnpm install --frozen-lockfile && pnpm docs:build:vminfo

Custom domain

  • Use a docs subdomain such as vminfo.bestcheapvps.org
  • Add the custom domain inside the Cloudflare Pages project first
  • Then configure DNS as Cloudflare instructs
  • Do not create only a manual CNAME without attaching the Pages project

Base path

  • For a custom domain at the site root, do not set base
  • For a subpath deployment such as https://example.com/vminfo/, set base: "/vminfo/"

Output

Cloudflare Pages should publish the static site from sites/vminfo/docs/.vitepress/dist.

最近更新

Released under the MIT License.