Documentation site for NVM for Windows (Docusaurus).
npm ci
npm startnpm run buildStatic output is written to build/.
Production deploys use Direct Upload (not Cloudflare Git integration).
-
Create a Cloudflare API token with Account → Cloudflare Pages → Edit.
-
Create the Pages project (once):
npx wrangler pages project create nvm-windows-docs --production-branch=main
Or deploy once with Wrangler logged in; the project is created on first upload.
-
In GitHub repo settings → Secrets and variables → Actions, add:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
-
In the Cloudflare dashboard, attach custom domain
docs.nvm-windows.comto projectnvm-windows-docs.
Direct Upload projects cannot later switch to Pages Git integration; create a new project if you need that.
Requires Wrangler auth (npx wrangler login) or CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID in the environment:
npm run deployThis runs npm run build, then:
wrangler pages deploy ./build --project-name=nvm-windows-docs --branch=mainPublishing a GitHub Release triggers .github/workflows/deploy-pages.yml, which checks out the release tag and deploys build/ to Cloudflare Pages production (--branch=main).
You can also run the workflow manually via Actions → Deploy Cloudflare Pages → Run workflow.