Deploy

Deploy your React app,

on a server run for you.

Build and serve a React app, Vite, Create React App, or any single-page app, straight from GitHub. SelfHost builds the static bundle and serves it on a dedicated server, with auto-deploy on push and a custom domain handled for you.

Vite, CRA, any SPA /Auto-deploy on push /Custom domain + SSL /From ~$0.02/hr

What you get

Your React app, built and served.
On infrastructure you control.

SelfHost detects your React project from GitHub, runs your build (Vite, Create React App, or any static build), and serves the output on a dedicated server. Point a domain, and every push rebuilds and ships automatically. Pair it with a backend service or a database in the same project when you need one.

Static build (auto-detected), or Nixpacks

Deploy in 5 steps

From zero to live.
No server to set up.

From repo to a live URL in a few steps. SelfHost builds the bundle and serves it for you.

1

Create a Project

Give it a name and SelfHost provisions a dedicated server for you in a couple of minutes.

2

Add your GitHub repo

Connect the GitHub App or paste a public repo URL and pick a branch. SelfHost auto-detects the build (Vite, Create React App, or static).

3

Set build-time variables

Add your VITE_ or REACT_APP_ variables (such as the API base URL), or paste a .env to import them in bulk.

4

Point your domain

Use the default wildcard subdomain on selfhost.dev, or add your own: set the DNS records, verify, and HTTPS goes live automatically.

5

Deploy

SelfHost builds the bundle and serves it. Every push redeploys, with PR preview environments and one-click rollback.

Environment variables

Configure it
in minutes.

React build-time variables are baked into the bundle at build, set them per service:

Paste a .env to import in bulk, or set keys one by one. Values are wired into every build and deploy.

Key variables

VITE_* / REACT_APP_* Public build-time variables (API URL, keys) baked into the client bundle.
.env import Paste a .env to load all build variables at once.

What you get

React, the easy way.
On a server you control.

Vite, CRA, any SPA

SelfHost auto-detects your build and serves the static output. No build config to wrestle with.

Auto-deploy from GitHub

Every push rebuilds and ships, with PR preview environments and one-click rollback.

A backend in the same place

Add an API service or a one-click database to the same project so your frontend and backend live together.

Custom domain + SSL

Add a domain, verify DNS, and HTTPS is provisioned and renewed automatically.

A server you control

Your app runs on a dedicated server with live metrics and full logs.

Pay only for what you run

Billed by the hour against prepaid credits, from ~$0.02/hr. Pause and pay nothing.

Which one

Frontend and backend together

A React SPA often needs an API. Deploy your backend (Node, Python, Go, or a Dockerfile) and your database into the same project, so your whole app lives in one place instead of stitched across platforms.

Frequently Asked Questions

Can I deploy a React app on SelfHost?
Yes. Connect your GitHub repo and SelfHost builds your Vite or Create React App bundle and serves it on a dedicated server, with auto-deploy on push and a custom domain.
Does it work with Vite and Create React App?
Yes. SelfHost auto-detects the build and serves the static output. Any single-page app build works.
How do I connect my React app to a backend?
Deploy your backend (Node, Python, Go, or a Dockerfile) and a database into the same project, so your frontend and backend run side by side. How Projects work.
How much does it cost to host a React app?
Pay-as-you-go by the hour against prepaid credits. A project server starts around $0.02/hr (about $0.50 a day) with no tiers. Pause it and you pay nothing. See pricing.
Can I add my own domain?
Yes. Every project gets a wildcard subdomain on selfhost.dev, and you can add your own domain with automatic, renewed SSL.

Deploy your React app. Frontend and backend in one place.

Vite, CRA, any SPA
Auto-deploy + custom domain
From ~$0.02/hr, pay-as-you-go
Deploy React