Cloudflare Pages is one of the fastest and most reliable ways to deploy your Rift site. It offers edge-hosted static delivery, free HTTPS, automatic Git integration, and zero-config deployment.
package.json with:"build": "rift build" defined in scriptsdist/Make sure your Rift project is in a Git repo and pushed to GitHub (or GitLab).
You only need the source files — src/, package.json, etc. No need to commit dist/.
Visit pages.cloudflare.com and click “Create a project”. Connect your GitHub or GitLab account and choose your Rift repository.
In the project setup:
Nonenpm run builddistCloudflare will install dependencies, run your build, and deploy the static files in dist/.
Once settings are saved, hit Deploy Site. Your site will be built and published to a *.pages.dev subdomain within a minute or two.
Go to your Pages project → Settings → Custom Domains. Add your domain (e.g. riftssg.com) and point DNS to Cloudflare or update your registrar. Free HTTPS and auto-renewing SSL is included.
After deployment:
.pages.dev domain404.html work as expectedEvery time you push to your main branch, Cloudflare will rebuild and redeploy your site automatically. You can also use preview branches to test features without affecting production.
| Setting | Value |
|---|---|
| Framework preset | None |
| Build command | npm run build |
| Output directory | dist |
| Default domain | *.pages.dev |
| Free HTTPS | ✅ Yes |
| Auto redeploys | ✅ Yes |