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:
- VITE_ADMIN_PASSWORD: Your admin panel password (Required).
- VITE_GITHUB_TOKEN: Your token (Optional).
- VITE_GITHUB_REPO: Your sync repo name (Optional).
- 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.