Cloudflare Pages is a JAMstack platform for frontend developers to collaborate and deploy websites on Cloudflare's global edge network.
Free tier
Unlimited static asset requests, 500 builds/month, 100 projects/account
Workers $5/mo · 330+ cities
Status: inferred · Last reviewed: 2026-07-10
A conventional Express API is easiest on Render; a small request-driven API can avoid server sleep on Cloudflare Workers. Choose the runtime before following deployment steps because the same Node.js code may not run unchanged in both environments.
Use Cloudflare Workers for a small Hono API, webhook or edge-friendly endpoint.
Use Render for Express, Fastify or NestJS when a normal Node process is required.
Keep state in a managed database or object store, never the local filesystem.
Add health checks, input validation, timeouts and production CORS before publishing.
Cloudflare Pages is a JAMstack platform for frontend developers to collaborate and deploy websites on Cloudflare's global edge network.
Free tier
Unlimited static asset requests, 500 builds/month, 100 projects/account
Workers $5/mo · 330+ cities
Render is a unified cloud to build and run all your apps and websites with free TLS certificates, a global CDN, private networks and auto deploys from Git.
Free tier
512 MB web service, 750 hours/month, sleeps after 15 minutes; free Postgres expires after 30 days
Sleeps when idleSuspends at the limit
Paid from $7/mo · 5 regions
Railway is an infrastructure platform where you can provision infrastructure, develop with it locally, and then deploy to the cloud.
Free tier
30-day trial with $5 credit, then $1 monthly usage credit on Free
Credit-based allowanceSuspends at the limit
Paid from $5/mo · 4 regions
Keep Express or NestJS on a web service when compatibility matters. Use Workers when every operation fits a short request and the application benefits from edge distribution. Do not select a serverless host only to avoid sleep if the rewrite makes the system fragile.
A successful /health response is only the start. Test malformed JSON, expired credentials, duplicate webhooks, database pool exhaustion and third-party timeouts. Add structured logs without secrets and return stable error shapes. Those practices make a free prototype much easier to upgrade later.
Render is the simplest conventional option, but its free service sleeps. Cloudflare is stronger for no-sleep request-driven APIs after adapting the code to Workers.
No. Node compatibility has improved, but a Workers handler is not a permanent server. Check native modules, filesystem use, sockets, background work and framework support.
Validate inputs, authenticate sensitive routes, rate-limit public endpoints, restrict CORS, store secrets outside Git and set timeouts on every outbound request.