Deploy to Cloudflare Pages
Deploy Zutra HyperSaaS to Cloudflare Pages with global edge CDN.
Cloudflare Pages gives you a global CDN, automatic HTTPS, and 500 free builds/month.
Steps
1. Connect your repository
- Go to Cloudflare Dashboard → Workers & Pages → Create
- Select Pages → Connect to Git
- Authorise GitHub and select your repository
2. Configure build settings
| Setting | Value |
|---|---|
| Framework preset | Astro |
| Build command | pnpm build |
| Build output directory | dist |
| Root directory | / (leave blank) |
3. Set environment variables
In Settings → Environment Variables, add all variables from .env.example.
Cloudflare Pages requires Node.js compatibility for some packages. Add the compatibility flag
nodejs_compatin Settings → Functions → Compatibility flags.
4. Deploy
Click Save and Deploy. Pages will build and give you a *.pages.dev URL immediately.
Custom domain
Custom Domains → Set up a custom domain — paste your domain and follow the DNS instructions. SSL is automatic.
Production checklist
-
SITE_URLinsrc/site.tsmatches your production domain - Node.js compat flag enabled if build fails on native modules
- All environment variables set in Pages dashboard
-
FEATURE_FLAGS.demoDropdown: false