Cloudflare Pages Deployment
Most Recommended. YuNest can run permanently for free as a static site.
- Fork this Repo: Click Fork to copy the code to your GitHub account.
- Import Project: Log in to Cloudflare Dashboard and import your forked repo.
- Build Config:
- Build Command:
npm run build - Output Directory:
dist
- Build Command:
- 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).
- ADMIN_PASSWORD: Your admin panel password (Optional, defaults to
- Add the following in the platform's Environment Variables settings:
- 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.