Back to Blog

Free Static Site Hosting for React, Vite & Plain HTML

Kumar Saha
June 28, 2026
6 min read

Portfolios, documentation, landing pages, hackathon demos, course projects — most of the web is static files, and static files should be free to host. Here's how to put a React, Vue, Vite or plain HTML site on a live HTTPS URL in minutes, with automatic rebuilds on every Git push.

What counts as a static site?

Anything that compiles to HTML, CSS and JavaScript with no server process: React and Vue SPAs, Vite and Create-React-App builds, Astro and 11ty output, documentation generators, or a hand-written index.html. If your framework has a build command that produces a dist/ or build/ folder, it's static.

(Next.js with server components or API routes is not static — deploy that as a Web Service instead.)

Deploying in four steps

  1. Push your site to GitHub (GitLab and Bitbucket work too).
  2. Create App → Static Site in the Abasthan dashboard and connect the repo.
  3. Set the build command and output folder — e.g. npm run build and dist for Vite, build for CRA. Plain HTML? No build command, output is the repo root.
  4. Pick the Free plan and deploy. A minute later your site is live at your-site.abasthan.app with SSL.

From then on, every push to your branch rebuilds and republishes automatically. Preview a change by pushing it; roll back by reverting the commit. Your deploy process is just Git.

Custom domains (free, with SSL)

Add your domain in the app settings, create the CNAME record it shows you, and verification and SSL happen automatically — on the Free plan too. Your portfolio can live at yourname.com without paying a hosting bill.

SPA routing

Single-page apps with client-side routing (React Router, Vue Router) need unknown paths to fall back to index.html — otherwise refreshing /about 404s. Abasthan static sites handle the SPA fallback for you, so deep links and refreshes just work.

When your site outgrows "static"

The day you need an API, auth, or a database, you don't need to migrate hosts: deploy a Node.js or Python web service next to your static site, attach managed Postgres, and keep the same workflow. Static plans scale from $1.5/month when you need more; compute plans from $2/month — all per-second billed.

FAQ

Is it actually free, forever?

Your first app — including a static site — runs on the Free plan at $0 with a subdomain and SSL. It's a real tier, not a trial that expires or demands a card.

How is this different from GitHub Pages?

Same "push to publish" feel, but with private repo support across GitHub/GitLab/Bitbucket, a proper build pipeline for any framework, SPA fallbacks, and a growth path to backends and databases on the same platform.

What frameworks are supported?

Anything that builds to files: React, Vue, Svelte, Astro, Vite, CRA, 11ty, Hugo-style generators with a Node build step, or zero-build plain HTML/CSS/JS.

Put your site on the internet

Connect your repo, set the build command, and your site is live with SSL in minutes — free. Custom domain included.

Deploy Free

KS
Kumar Saha
Abasthan