Skip to content

Deploying to Cloudflare Pages ​

Settings ​

  • Build command: nvm use 22 && yarn install --frozen-lockfile && yarn docs:build
  • Output directory: docs/.vitepress/dist
  • Node.js: 22 (.nvmrc is 22; optionally set NODE_VERSION=22 in Pages)
  • Package manager: Yarn 1.22.22

This is a static SSG site. It needs no Functions, database or upload route. If advertising is enabled, configure a real VITE_ADSENSE_CLIENT_ID Pages variable; without it, AdSense is not loaded.

Models download and cache in the browser on first use. The build does not download models and never writes user images to the output. Confirm model licenses, Cloudflare Pages size limits and your caching policy before deployment.

Local preview:

bash
nvm use 22
yarn install --frozen-lockfile
yarn docs:build
yarn docs:preview

© 2026 Local OCR. Your images stay in your browser.