Skip to content

Build Settings

Cloudflare Pages

SettingRecommended value
Project namehideapps-docs
Production branchmain
Framework presetVitePress
Build commandnpx vitepress build
Build output directory.vitepress/dist
Production domaindocs.hideapps.top

package.json

json
{
  "scripts": {
    "dev": "vitepress dev --host 127.0.0.1",
    "build": "vitepress build",
    "preview": "vitepress preview --host 127.0.0.1",
    "deploy": "npm run build && wrangler pages deploy .vitepress/dist --project-name hideapps-docs"
  }
}

wrangler.toml

toml
name = "hideapps-docs"
pages_build_output_dir = ".vitepress/dist"
compatibility_date = "2026-06-24"

Node Version

To reduce differences between local and Cloudflare builds, set this environment variable in Cloudflare Pages:

text
NODE_VERSION=22

Built with VitePress and Cloudflare Pages.