Deploy

Free credit available Limited time

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.dev builds the static bundle and serves it on a dedicated server, with auto-deploy on push and a custom domain handled for you.

+$5.00 added at signup ยท deployment choice preserved ยท no card

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.dev 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.dev builds the bundle and serves it for you.

1

Create a Project

Give it a name and Selfhost.dev provisions a dedicated server for you.

2

Add your GitHub repo

Connect the GitHub App or paste a public repo URL and pick a branch. Selfhost.dev 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.dev 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 importPaste a .env to load all build variables at once.

Why Selfhost.dev

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

Vite, CRA, any SPA

Selfhost.dev 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.

Drive it from your AI editor

Trigger deploys, stream logs, set env vars and add domains from Claude, Cursor or any MCP client: 189 MCP tools.

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.dev?
Yes. Connect your GitHub repo and Selfhost.dev 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.dev 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.
Can I manage my React deployment with AI?
Yes. The Selfhost.dev MCP server ships 189 tools across 31 modules: trigger deploys, stream build logs, set environment variables, add domains and manage the project from Claude, Cursor, Windsurf or any MCP client. Explore the MCP server.

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
Launch React