Push your Devin Desktop code to GitHub, import the repo on Cloudflare Pages, build with npm run build, add your
environment variables before the first build, add the (none) refresh fallback, allow the new
URL in your auth provider, then connect your domain. Cloudflare Pages: Free: unlimited sites, seats, requests and bandwidth for static assets; paid from $5/mo
(checked 17 Oct 2026).
Cloudflare Pages doesn't run always-on servers. If your project has a long-running backend (websockets, bots, background jobs), use Railway or Render for that part.
Step by step
-
Check your project type
- Static / SPA: Build outputs dist/ or build/.
- Next.js / SSR: next.config.* etc.
-
Get the code onto GitHub
- Push to GitHub like any local project; App Deploys config lives in windsurf_deployment.yaml.
-
Create the project on Cloudflare Pages
Dashboard → Workers & Pages → Create → Pages → Connect to Git, choose the repository, pick the framework preset.
-
Check the build settings
React (Vite) preset: build command
npm run build, build directorydist.For Devin Desktop: build command
npm run build, output Framework default. -
Add environment variables before the first build
In Cloudflare Pages: Workers & Pages → your project → Settings → Environment variables. Copy these from Devin Desktop:
-
Your local .env — add values in Netlify after claiming the site.
Changed a value later? Rebuild. Vite bakes variables in at build time. Troubleshoot missing env vars
-
-
Make page refreshes work (Usually nothing to do)
(none) # No config needed: if there is no top-level 404.html, # Cloudflare Pages serves index.html for unknown routes. # If you DO ship a 404.html, add public/_redirects with: /* /index.html 200Server-rendered projects (TanStack Start, Next.js) don't need this. Cloudflare Pages docs (opens in a new tab)
-
Update login redirect URLs
Add your new Cloudflare Pages URL (and later your custom domain) to your auth provider's allowed URLs. Redirect troubleshooting
-
Add your domain
Your project → Custom domains → Set up a custom domain. Easiest if the domain's DNS is on Cloudflare (Cloudflare Registrar sells domains at cost).
How much does Cloudflare Pages cost for a Devin Desktop app?
Free tier Free: unlimited sites, seats, requests and bandwidth for static assets. Paid from $5/mo: Workers Paid: $5/month minimum per account — 10M requests/month included, then $0.30 per extra million. Static asset requests stay free.. Checked 17 Oct 2026 on Cloudflare Pages's pricing page (opens in a new tab).
- If your project has no top-level 404.html, Pages treats it as a single-page app and serves / for unknown paths automatically.
Other options for Devin Desktop
Errors to watch for on Cloudflare Pages
Related guides
- Custom domain on Lovable, Bolt, Replit and v0: what it costs and how to set it up
- Supabase vs Neon vs Firebase vs Turso: which database for an AI-built app?
- Supabase “permission denied for table” (42501) on a new table: the October 30 grants change, explained and fixed
- Cursor Live Apps (November 2026): which plans can host apps, who can open them, and when to still use Vercel or Railway
- Netlify Server (Early Access, November 2026): run an Express, Hono or Fastify backend and WebSockets on Netlify
- Supabase CLI v3 (November 2026): why db push no longer reaches your project, and how to fix HostedMutationConsentRequiredError
- Cloudflare spending limits (November 2026): how to put a hard cap on your Workers bill, and what stops when you hit it
- Cloudflare Email Sending on the Workers Free plan (November 2026): what you can send for free, what needs the $5 plan, and how to set it up
- Cloudflare Search for Agents (November 2026): what the toggle does, what it costs from 1 December, and how to set it up safely
- Claude Sonnet 4.5 retires on 30 November 2026: find the calls in your vibe-coded app and switch without new 400 errors