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:
      • ADMIN_PASSWORD: Your admin panel password (Optional, defaults to admin1234).
      • GITHUB_TOKEN: Your GitHub Personal Access Token (Optional, used for data synchronization).
      • GITHUB_REPO: Your sync repo name (Optional, e.g., username/repo).
  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.