# Cheapest cloud hosting for a full-stack app in 2026 > A Next.js + Postgres app at 100k page views costs $5 on Cloudflare (as a rewrite), about $7 on your own server and $22 to $65 on platforms. Published 2026-11-19, by Nick Potts. For agents: [llms.txt](https://ployz.dev/llms.txt) indexes the Ployz docs as Markdown. **TL;DR:** For a commercial Next.js app with Postgres, the cheapest hosting that runs it unchanged is a rented server: about **$7 a month** for a Hetzner CX23 in Europe, or €8.26 incl. VAT for a Netcup VPS 500 with a US datacenter. Cloudflare is cheaper at $5 if you can rewrite for SQLite. - **Cheapest platform:** Cloudflare Workers + D1 at $5 a month, but D1 is SQLite and Next.js runs through an adapter. - **Cheapest server:** Hetzner CX23 in Europe or Netcup VPS 500 in the US, with Next.js and Postgres on the same box and traffic included. - **Free:** Oracle's Always Free tier runs the whole app for $0, but Oracle can reclaim an instance it decides is idle. - **Managed platforms at 100k page views:** $22 on Railway, $25 on DigitalOcean App Platform, $45 to $59 on Netlify, Fly.io and Render, $65 on Vercel Pro with Supabase. - **Avoid for a business:** Vercel Hobby (non-commercial only), Supabase Free (pauses after a quiet week) and Render Free (sleeps, and free Postgres expires). - **Pick Ployz if** you want git-push deploys, preview environments and a coding agent that deploys for you at the server price. Ployz is free on your servers, so the bill stays about $7 a month. Cheap cloud hosting for a full-stack app means the lowest monthly bill for both the app and its database, on terms a paying app can live with. ## What would your app cost on each option? Every row prices the same thing: a server-rendered Next.js app and a Postgres database. Vercel Hobby isn't a row, because a commercial app can't use it. *The interactive calculator is on the web page: https://ployz.dev/blog/cheapest-cloud-hosting* ## What does the same app cost at three sizes? At 100k page views and a 2 GB database, the bill runs from **$5 on Cloudflare** to $65 on Vercel with Supabase. Grow to 5 million views and 5 TB, and bandwidth splits the field: Netlify and Render pass $800, while servers stay at $48 or less. | Option | 100k views, 100 GB, 2 GB DB | 1M views, 1 TB, 10 GB DB | 5M views, 5 TB, 25 GB DB | |---|---|---|---| | Vercel Pro + Supabase Pro | $65 | $145 | $364 | | Cloudflare Workers + D1 (Supabase past 10 GB) | $5 | $9 | $40 | | Netlify Pro + Supabase Pro | $45 | $195 | $862 | | Render | $59 | $196 | $822 | | Railway Hobby | $22 | $69 | $277 | | Fly.io | $47 | $67 | $186 | | DigitalOcean App Platform | $25 | $43 | $127 | | DigitalOcean Droplet + Ployz | $24 | $24 | $48 | | Oracle Always Free + Ployz | $0 | $0 | $0 | | **Hetzner CX23/CX33 + Ployz** | **$7** | **$7** | **$11** | The server rows are the server bill alone, because Ployz is free on any number of servers, custom domains included. Hetzner's CX servers are in Germany and Finland only. In the US, the cheap options are Netcup's Manassas datacenter or a DigitalOcean Droplet, because Hetzner's US servers cost more than DigitalOcean after its two 2026 price rises ([Hetzner vs DigitalOcean](https://ployz.dev/blog/hetzner-vs-digitalocean)). ## What app did I price? One Next.js app with server-rendered pages and one Postgres database. At the default settings it serves 100,000 page views a month at 1 MB each (100 GB of transfer) and keeps a 2 GB database. These are assumptions, not measurements, and they match the app in my [Vercel alternatives comparison](https://ployz.dev/blog/vercel-alternatives) minus the background worker. - **Pages:** 1 MB and 20 requests per page view (HTML, JS chunks, CSS, fonts, images, one API call). One server render per view, 30 ms of CPU, 250 ms of wall time. - **Database:** Postgres, about 20 KB of query results per page view. Past 10 GB I move every managed database up one size. - **Team:** one person, 30 production deploys a month. Where a platform has no Postgres of its own, I used [Supabase Pro](https://supabase.com/pricing): from $25 a month with $10 of compute credits that cover one Micro instance, 8 GB of disk, and 250 GB of egress, then $0.09 per GB. ## What is the cheapest way to host Next.js with Postgres? A rented server. A Hetzner CX23 (2 vCPU, 4 GB) is **$6.49 plus about $0.60 for IPv4** in Europe, and a Netcup VPS 500 (2 vCPU, 4 GB, 64 GB) has a datacenter in Manassas, Virginia. Next.js and Postgres share the box, and traffic is included. | Server | Specs | Monthly price | Traffic | Source | |---|---|---|---|---| | Netcup VPS 500 | 2 vCPU, 4 GB RAM, 64 GB SSD | €8.26 incl. VAT, 12-month term | included | [netcup VPS](https://www.netcup.com/en/server/vps) | | Netcup VPS 1000 | 4 vCPU, 8 GB RAM, 128 GB SSD | €14.50 incl. VAT, 12-month term | included | Same | | Hetzner CX23 (Germany, Finland only) | 2 vCPU, 4 GB RAM, 40 GB NVMe | $6.49 + ~$0.60 IPv4 | 20 TB | [Hetzner prices](https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/), [Cost-Optimized](https://www.hetzner.com/cloud/cost-optimized) | | Hetzner CX33 (Germany, Finland only) | 4 vCPU, 8 GB RAM, 80 GB NVMe | $9.99 + ~$0.60 IPv4 | 20 TB | Same | I'd look at Netcup first for more disk and a US location. I used Hetzner in the calculator because it publishes USD prices. More providers are compared in [the cheapest VPS](https://ployz.dev/blog/cheapest-vps). At 5 TB a month the traffic is still a quarter of Hetzner's included 20 TB. What the price leaves out: - **No global CDN.** The app is served from one city. - **A fixed size.** A launch that brings 50x your traffic hits the server's ceiling instead of a bigger bill, until you add a server. - **Backups on another machine.** A database on one server needs its backups somewhere else. ## Is Cloudflare the cheapest platform for Next.js? Yes, on the bill. Workers Paid is **$5 a month** with 10 million requests and 30 million CPU milliseconds included, static assets are free, and bandwidth costs nothing. D1 adds 5 GB of storage and 25 billion row reads a month. The catch is that D1 is SQLite, not Postgres, and Next.js runs through an adapter. | Item | Free | Paid ($5/month) | Source | |---|---|---|---| | Worker requests | 100,000 a day | 10M a month, then $0.30 per 1M | [Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/) | | CPU time | 10 ms per invocation | 30M ms a month, then $0.02 per 1M ms | Same | | Bandwidth | free | free | Same | | D1 storage | 5 GB total, 500 MB per database | 5 GB, then $0.75/GB; 10 GB max per database | [D1 pricing](https://developers.cloudflare.com/d1/platform/pricing/), [D1 limits](https://developers.cloudflare.com/d1/platform/limits/) | | Hyperdrive queries | 100,000 a day | unlimited | [Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/) | What you trade: - **Next.js runs through [OpenNext's Cloudflare adapter](https://opennext.js.org/cloudflare)**, not natively. It covers the App Router, ISR and image optimization, but Node middleware isn't supported yet and the compressed Worker must fit in 10 MiB on Paid. - **D1 is SQLite.** Your Postgres queries, migrations and extensions have to move. The 10 GB per-database cap "cannot be increased further." - **Keeping Postgres** means Hyperdrive in front of a hosted database. With Supabase Pro that's $30, which is why the calculator switches past 10 GB. If your app is new and small, I think Cloudflare is the cheapest platform you can pay for. If it's an existing Postgres app, it's a rewrite. ## Is Oracle Cloud's Always Free tier really free? Yes, and it's the most generous free server I know of: an Arm VM with 2 OCPUs and **12 GB of RAM**, 200 GB of block storage and 10 TB of outbound traffic a month, with no end date. That runs the reference app with Postgres on the same box for $0. The catches are capacity, reclamation and support. From Oracle's [Always Free resources page](https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm): | Resource | Always Free amount | |---|---| | Ampere A1 (Arm) compute | 1,500 OCPU-hours and 9,000 GB-hours a month, "equivalent to 2 OCPUs and 12 GB of memory" | | AMD micro VMs | Up to two, each 1/8 OCPU and 1 GB of RAM | | Block storage | 200 GB total, boot volumes included (minimum 47 GB each) | | Outbound data | 10 TB a month | | Databases | Two Autonomous AI Databases (Oracle's own database, not Postgres) | Older guides promise 4 OCPUs and 24 GB. Oracle's page says 2 and 12 today, so check it before you plan around more. The catches, from the same page and the [Free Tier FAQ](https://www.oracle.com/cloud/free/): - **Reclamation.** "Idle Always Free compute instances may be reclaimed by Oracle." Idle means that over 7 days, 95th-percentile CPU, network and (on Arm) memory use were all under 20%. A small app with little traffic can look idle. - **Capacity.** An "out of host capacity" error means there are no free Arm shapes in your home region right now. Oracle's advice is to try another availability domain or wait. - **Home region only.** Free resources live in the region you pick at sign-up. - **One account per person**, and support tickets need a Pay As You Go account. Upgrading keeps the free resources free. Oracle is great for a side project or a staging copy. I wouldn't put a paying customer's only copy on a server the provider can take back. ## Can you host a commercial app on Vercel Hobby and Supabase Free? No. Vercel's Hobby plan is "restricted to non-commercial personal use only", and Vercel counts ads, payments, affiliate sites and even a paid contractor writing the code as commercial. The reference app also breaks the limits: 100,000 page views make 2 million CDN requests against Hobby's 1 million, and a 2 GB database is four times Supabase Free's 500 MB. From Vercel's [fair use guidelines](https://vercel.com/docs/limits/fair-use-guidelines#commercial-usage), commercial use is "any Deployment that is used for the purpose of financial gain of anyone involved in any part of the production of the project". Asking for donations is fine. Running AdSense is not. | Free plan | What's included | The catch | Source | |---|---|---|---| | Vercel Hobby | 100 GB transfer, 1M CDN requests, 4 CPU-hours, 1M invocations | Non-commercial only. Go over and you wait 30 days for the feature to come back. | [Hobby plan](https://vercel.com/docs/plans/hobby) | | Supabase Free | 500 MB database, 5 GB egress, 2 active projects | "Free projects are paused after 1 week of inactivity." | [Supabase pricing](https://supabase.com/pricing) | For a side project with no money involved, this pair is a good $0 setup up to about 25,000 page views a month. Once the project earns its first dollar, the floor is Vercel Pro at $20 plus Supabase Pro at $25. I went through where that line sits in [Is Vercel free?](https://ployz.dev/blog/is-vercel-free) and [Is Supabase free?](https://ployz.dev/blog/is-supabase-free). ## What do Railway, Render, Netlify and Fly.io cost for this app? At 100k page views, Railway is the cheapest at **$22**, then Netlify $45, Fly.io $47 and Render $59. Railway bills what you use, so a quiet app is cheap. The others charge per service, and Render and Netlify charge $0.13 to $0.15 per GB of bandwidth, which is what pushes them past $800 at 5 TB. | Platform | What the $ buys | Source | |---|---|---| | Railway | Hobby $5/month with $5 of usage; RAM ~$10/GB, CPU ~$20/vCPU, volumes ~$0.15/GB, egress $0.05/GB | [Railway pricing](https://railway.com/pricing) | | Render | Hobby workspace with 5 GB bandwidth then $0.15/GB; web services $7 (512 MB) or $25 (2 GB); Postgres $6 (256 MB), $19 (1 GB), $40 (2 GB), storage $0.30/GB | [Render pricing](https://render.com/pricing) | | Netlify | Pro $20 with 3,000 credits, then 1,500 for $10; 20 credits per GB, 2 per 10,000 requests, 15 per deploy | [Netlify pricing](https://www.netlify.com/pricing/) | | Fly.io | About $0.69 per shared vCPU a month plus $6 per GB of RAM, so a 1 GB shared Machine is $6.69; Managed Postgres $38 (1 GB) or $72 (2 GB), storage $0.28/GB; egress from $0.02/GB | [Fly.io pricing](https://fly.io/pricing/), [Managed Postgres](https://docs.fly.io/mpg) | Fly.io's Postgres line is high because every Managed Postgres plan includes high availability and backups. That's real value. On your own server you need backups too, and Ployz keeps a restore point for each database. Their free options, and why they don't run this app: - **Render Free:** a free web service "spins down" after 15 minutes without traffic, and free Postgres "expire[s] 30 days after creation" ([Render free docs](https://render.com/docs/free)). More in [Render's free tier](https://ployz.dev/blog/render-free-tier). - **Railway:** a one-time $5 trial for 30 days, then a Free plan with $1 of usage a month, which isn't enough for an always-on app plus Postgres. - **Netlify Free:** 300 credits, about 15 GB of bandwidth. When credits run out, "all of your web projects (sites/apps) are paused" ([credit docs](https://docs.netlify.com/manage/accounts-and-billing/billing/billing-for-credit-based-plans/how-credits-work/)). - **Fly.io:** "There is no 'free account/free tier' on Fly.io" ([cost management](https://docs.fly.io/about/cost-management/)), only a short trial. ## Is DigitalOcean cheaper than Vercel? Yes, for this app. App Platform with a Managed Postgres database is **$25 a month** at 100k page views against $65 for Vercel with Supabase, and $43 at 1 TB against $145. A 4 GiB Droplet with Postgres on the same box is a flat $24, Ployz included. | Product | Price | Source | |---|---|---| | App Platform, 1 GiB fixed container | $10/month, 100 GiB transfer, then $0.02/GiB | [App Platform pricing](https://www.digitalocean.com/pricing/app-platform) | | App Platform dev database | $7/month, 512 MiB | Same | | Managed PostgreSQL, 1 GiB / 1 vCPU / 10 GiB | $15.15/month, extra storage $0.215/GiB in 10 GiB steps | [Managed Databases pricing](https://www.digitalocean.com/pricing/managed-databases) | | Basic Droplet, 2 GiB / 50 GiB | $12/month, 2,000 GiB transfer | [Droplet pricing](https://www.digitalocean.com/pricing/droplets) | | Basic Droplet, 4 GiB / 80 GiB | $24/month, 4,000 GiB transfer | Same | | Droplet backups | 20% of the Droplet price weekly, 30% daily | Same | App Platform's free tier runs static sites only. The $7 dev database is meant for development, so I priced Managed Postgres, which includes daily backups. My [DigitalOcean pricing breakdown](https://ployz.dev/blog/digitalocean-pricing) goes through Droplets against App Platform line by line. ## Which cheap hosting should you pick? | If… | Pick | Monthly at 100k views | |---|---|---| | The project is personal, earns nothing, and stays under about 25,000 page views and 500 MB of data | Vercel Hobby + Supabase Free | $0 | | It's a side project or staging copy and a reclaimed server is tolerable | Oracle Always Free | $0 | | You're starting fresh and can live with SQLite and the OpenNext adapter | Cloudflare Workers + D1 | $5 | | You want a managed platform with real Postgres and no server to look after | Railway or DigitalOcean App Platform | $22 to $25 | | The app earns money and uses Postgres | Your own server | about $7, with or without Ployz | On your own server the bill barely moves with traffic: the Hetzner row goes from $7 to $11 between 100 GB and 5 TB, while Netlify and Render pass $800. The pattern across [every PaaS fee](https://ployz.dev/blog/paas-pricing) is the same: the free tier gets you in, and the first paid step charges for a database plus bandwidth at platform markup. ## Where Ployz fits I built Ployz to keep that $7 server bill and add the Vercel workflow. It turns the server you rent into a platform your coding agent runs. Paste `Read ployz.dev/agents.md and deploy this repo to my server.` into Claude Code, Codex or Cursor and it ships the repo. ```sh ployz up --server root@your-server ``` Push to GitHub and your Next.js app builds on your server without a Dockerfile. Every pull request gets a preview with its own https address. Postgres is one click and keeps a restore point. The server rows above are the whole bill. Ployz is free on any number of servers. [Host your full-stack app on your own server with Ployz](https://ployz.dev/auth/github). ## FAQ ### What is the cheapest way to host a website with a database? Oracle's Always Free tier at $0, if you accept that Oracle can reclaim an idle instance. Among paid options, Cloudflare Workers + D1 is $5 a month if SQLite works for you, and a 4 GB server at about $7 a month runs Postgres unchanged. ### Is Railway cheaper than Vercel? For this app, yes: $22 a month on Railway against $65 for Vercel Pro with Supabase at 100k page views, and $69 against $145 at 1 million. ### Can a cheap server handle 5 million page views? For this app, yes, on a 4 vCPU server like the $10.59 Hetzner CX33. Five million views is about two a second at 30 ms of CPU each, so the server is mostly idle. ## How I checked I checked every price on 2026-10-01 on the provider's own pricing page or docs, linked next to the number. All prices are USD before tax unless marked in euros. The app's traffic and database sizes are assumptions I chose, not measurements, and every row prices the same app.