How to deploy a Replit app

Online IDE with an AI Agent and its own publishing (Autoscale, Static, Reserved VM, Scheduled).

Easiest

Stay on Replit

Staying on Replit is lowest friction if you're already paying.

Cheapest

Render

Free web services (they sleep) and free static sites if you move off Replit.

What Replit gives you

Any language; Agent often builds Node/React or Python apps with a Replit database.

Built-in hosting

Publishing is built in. Static deployments are free (you pay for data transfer); Autoscale and Reserved VM are billed by usage.

  • Free: Starter: one free published app, which goes down after 30 days, with a 'Made with Replit' badge.
  • Custom domain: Paid plans; Core is $20/month ($18/month billed annually).

First: which kind of project do you have?

Type How to tell What the host needs
Static site Build produces a folder of files (dist/ or build/). Replit Static deployment or any static host.
Web server Runs a server process (Express, Flask, FastAPI…). Replit Autoscale/Reserved VM, or Railway / Render.

Get your code out

  • Connect GitHub in Account → Connected Services, then use the Git pane in the project to push to a repository.

Build settings

Build command
As configured in .replit / package.json
Output
For static deploys: the public directory (e.g. dist)
Node
As configured

Environment variables to copy

  • Replit Secrets don't travel with the code — re-create them at the new host.

Blank page after deploying?

Gotchas

  • Replit-specific databases and auth won't work outside Replit; plan a swap (e.g. to Neon or Supabase) before moving.
  • Replit's prices (Aug 2026): Autoscale $1/month base + $0.60 per million compute units + $0.40 per million requests; egress $0.05/GiB.

Step-by-step guides for Replit

Database & login

Data: Neon (opens in a new tab): Free: 100 projects, 100 CU-hours per project/month, 1 GB storage per project (20 GB total). Compare databases

Auth: Supabase Auth (opens in a new tab): Free: 50,000 MAU, social OAuth, anonymous sign-ins, basic MFA.

Common errors