Skip to content

Cloudflare Pages Deployment

Most Recommended. YuNest can run permanently for free as a static site.

  1. Fork this Repo: Click Fork to copy the code to your GitHub account.
  2. Import Project: Log in to Cloudflare Dashboard and import your forked repo.
  3. Build Config:
    • Build Command: npm run build
    • Output Directory: dist
  4. Environment Variables:
    • Add the following in the platform's Environment Variables settings:
      • VITE_ADMIN_PASSWORD: Your admin panel password (Required).
      • VITE_GITHUB_TOKEN: Your token (Optional).
      • VITE_GITHUB_REPO: Your sync repo name (Optional).
  5. Cloudflare Optimization (Recommended):
    • Steps: Go to Settings -> Build & deployment -> Build watch paths.
    • Exclude: Add data/* in Excluded paths. This prevents data sync from triggering redundant build tasks.