How To Deploy A Render Static Site, And What It Costs

Deploy a Render static site step by step: build command, publish directory, the rewrite that fixes Not Found on SPA routes, and the bandwidth bill behind free.
The OxyPages Team · · 8 min read
You probably came to Render for a backend, an API or a database, and now you want the frontend in the same place. Render's answer is a static site, and its docs say they're "fast and free to deploy".
Both halves of that are true. Setting up a Render static site is two fields and a click, and there's no per-site charge. But "free to deploy" isn't the same as free to run, because a static site draws on the same workspace allowances as everything else you host there.
So this post does two jobs. First the how-to: connecting the repo, the build command and publish directory for common frameworks, and the one rewrite rule that fixes "Not Found" when someone refreshes a page in a single-page app. Then the bill: what counts against your workspace, the flat plan fees, and what happens when you run past an allowance.
Every Render detail here comes from Render's own pricing page and docs, checked on 8 November 2026. If the "Not Found" problem is what brought you here and you're on a different host, the fix for a 404 on refresh on every host covers them all.
TL;DR: To deploy a static site on Render, choose New, then Static Site, connect a Git repository, and set a build command and a publish directory (dist for Vite and Astro, build for Create React App and Docusaurus, out for a Next.js static export). For a single-page app, add a Rewrite rule from /* to /index.html, or deep links return Not Found. Static sites have no per-site charge, but they count against the workspace's included bandwidth (5 GB on Hobby, 25 GB on Pro, then $0.15 per GB) and build pipeline minutes (500 on Hobby, 1,000 on Pro). Workspace plans are flat fees: Hobby $0, Pro $25 a month with no seat cap, Scale $499.
How Do You Deploy A Render Static Site?
You create it from the dashboard and point it at a Git repository. Render's static site docs describe the flow as: click New, then Static Site, connect your repo, specify your build details and the branch to deploy, and click Create Static Site.
In practice, that's four decisions:
- The repository. Render deploys static sites from a connected Git repository. I didn't find an upload or drag-and-drop route in Render's docs.
- The branch. Usually
main. Every push to it triggers a new build and deploy. - The build command. What Render runs to produce the site, such as
npm run build. - The publish directory. The folder that build writes, which is the only folder Render serves.
Render's docs say it detects and installs your dependencies by default. If you'd rather install them yourself, set an environment variable called SKIP_INSTALL_DEPS to true and put the install in your build command.
Each site gets an onrender.com address straight away. You can add your own domain later from the site's Settings page.
The Publish Directory For Each Framework
The publish directory is the folder your build command writes the finished site into. Get it wrong and Render either fails the deploy or serves the wrong files, so it's worth checking once by running the build on your own machine.
distfor Vite apps (React, Vue, Svelte) and Astro's default static output.buildfor Create React App, Docusaurus and SvelteKit with adapter-static.outfor Next.js, but only withoutput: 'export'set._sitefor Eleventy.
In every case the build command is usually npm run build, or npm ci && npm run build if you want a clean install that matches your lock file.
Render's own Create React App guide uses yarn; yarn build with build as the publish directory, which matches. what a Vite app's dist folder holds walks through that folder line by line.
Two framework notes. A Next.js project only writes an out folder when its config sets output: 'export'. Without it, it isn't a static site and belongs on a Render web service. And an Astro or SvelteKit project with a server adapter has stopped being static too.
Fix Not Found On Single-Page App Routes

If your site uses a client-side router, such as React Router or Vue Router, you need one rewrite rule, or every deep link returns "Not Found". The home page works, clicking around works, and then refreshing /pricing breaks.
It happens because there's no pricing file on the server. The router builds that page in the browser, so the server has to hand back index.html for any path it doesn't recognise. MDN's guide to the History API that client-side routers use explains the browser side.
On Render, the fix lives in the dashboard. Open the site's Redirects/Rewrites tab and add:
| Field | Value |
|---|---|
| Source Path | /* |
| Destination Path | /index.html |
| Action | Rewrite |
This rule is safe for your real files. Render's docs say it doesn't apply a redirect or rewrite rule to a path if a file exists at that path, so /assets/app.js is still served as itself.
Choose Rewrite, not Redirect. A redirect sends the browser to /index.html with a 301, which changes the address bar and throws away the route. A rewrite serves index.html quietly at the original address, which is what the router needs.
Render also lets you add custom response headers from the dashboard, which is where you'd set cache or security headers.
A Worked Example: A Vue App With Vue Router
Say you've built a small booking front end in Vue, with Vue Router handling /, /services and /book. It talks to an API that already runs as a Render web service.
- Run
npm run buildon your machine and confirm it writesdistwith anindex.htmlinside. - In Render, choose New, then Static Site, and connect the repository.
- Set the build command to
npm ci && npm run buildand the publish directory todist. - Add your API's public address as a build-time environment variable with the
VITE_prefix. Anything with that prefix ends up in the browser bundle, so it must be an address, never a key. - Click Create Static Site and wait for the first deploy.
- Open
/bookdirectly in a new tab. It returns Not Found. - Add the
/*to/index.htmlRewrite rule and reload. It works.
That's the whole setup. For a pull request preview, Render can build each pull request at its own address, and its docs say previews of a free static site are free.
What A Render Static Site Really Costs

The site itself costs nothing. What it uses is shared across your workspace, and the workspace is what you pay for. Render's pricing page describes billing as three things: a flat workspace subscription, metered features such as bandwidth, and compute for running services.
| Hobby | Pro | Scale | |
|---|---|---|---|
| Workspace fee | $0 a month | $25 a month | $499 a month |
| Team seats | 1 | No cap | No cap |
| Included bandwidth | 5 GB a month | 25 GB a month | 1 TB a month |
| Extra bandwidth | $0.15 per GB | $0.15 per GB | $0.15 per GB |
| Included build pipeline minutes | 500 a month | 1,000 a month | 5,000 a month |
| Extra pipeline minutes | $5 per 1,000 | $5 per 1,000 | $5 per 1,000 |
| Included custom domains | 2 | 15 | 25 |
| Extra domains | $0.25 each a month | $0.25 each a month | $0.25 each a month |
The Pro fee is per workspace, not per person, which matters if three of you deploy. Render's pricing FAQ calls the workspace plan a "flat subscription".
Where The Bandwidth Goes
Five gigabytes sounds like a lot until you do the arithmetic. A page that weighs 2 MB with its images and scripts uses 5 GB in about 2,500 views. That's the whole Hobby month, shared with every other service in the workspace.
Past the allowance, Render bills $0.15 for each extra gigabyte. Twenty gigabytes over is $3, which is small. The catch is what happens with no card on file.
What Happens With No Payment Method
Render's free-tier docs say that if you use up the month's bandwidth and haven't added a payment method, Render suspends all of your free services for the rest of the month. That line sits under its section on free web services, and static sites count against the same bandwidth, so plan for it applying to you.
Build minutes work differently. If you run out with no payment method, or hit your spend limit, Render disables new builds for the rest of the month, while your sites keep running on their last build.
So the practical advice is simple: if a static site matters, add a card, and set a spend limit you're comfortable with.
When A Different Host Fits Better
Render is a good home for a static front end when your API or database already lives there. One dashboard, one team, and preview builds that can sit beside the backend's previews.
If the static site is the whole project, it's worth comparing. Cloudflare publishes build and file limits for Pages rather than a bandwidth allowance, Netlify allows commercial use on its free plan, and how Netlify and Vercel compare on price covers those two in depth. every static host compared side by side lays out the free tiers together.
OxyPages is one more option for a static build: a flat monthly price, and a connected GitHub repository or an upload of the built folder. It doesn't run server code, so your Render API would stay on Render.
What To Do Next
- Run your build locally and confirm the publish directory from the table.
- Create the static site and connect the repository.
- If you use a client-side router, add the Rewrite rule before you share the link.
- Open your workspace's Billing page and look at the included bandwidth and pipeline minutes.
- Add a payment method and a spend limit if the site is anything more than a test.
And if you'd rather your static front end had a flat price of its own, compare our plans.
FAQ
Is A Render Static Site Free?
Deploying one is free, and there's no charge per static site. It does use your workspace's included bandwidth and build pipeline minutes, which on the Hobby plan are 5 GB and 500 minutes a month. Beyond those, Render bills $0.15 per GB and $5 per 1,000 minutes, if you've added a payment method.
Why Does My Render Static Site Show Not Found When I Refresh?
Your app uses client-side routing, and Render can't find a file at that path. Add a Rewrite rule in the Redirects/Rewrites tab from /* to /index.html. Render skips the rule wherever a real file exists, so your assets still load.
What Is The Publish Directory On Render?
It's the folder your build command writes the finished site into, and the only folder Render serves. Use dist for Vite and Astro, build for Create React App, Docusaurus and SvelteKit's static adapter, and out for a Next.js static export.
Can I Deploy To Render Without Git?
Not for a Render static site, as far as I can find. Render's static site docs start from connecting a repository, and every push to the chosen branch redeploys. If you only have a built folder, a host that accepts uploads is the shorter route.