How to deploy a Replit app

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

Short answer

Easiest: Replit's own hosting. Cheapest: Render. Database: Neon. Login: Supabase Auth. Copy your environment variables into the host before the first build, and add the new URL to your auth provider.

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. Autoscale (the default) bills per request, Reserved VM is a fixed monthly price, and Static is free apart from data transfer, but Static doesn't work for apps built with Replit Agent.

  • Free: Starter: one free published app, which goes down after 30 days, with a 'Made with Replit' badge.
  • Custom domain: Connect in Tools → Domains; Replit charges nothing for the connection (you pay your domain provider), but Starter's one free app goes down after 30 days, so a lasting site needs Core ($20/month, $18/month billed annually). Custom domain cost & setup for every builder

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.
  • Publishing costs come out of the same monthly credits as Agent work, and Replit doesn't document a default spend limit: set a usage limit in Settings → Usage before you publish (see the Replit deployment costs guide).

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 · Which database to pick

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

Common errors with Replit apps

Related guides

Common questions

What is the easiest way to host a Replit app?

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

What is the cheapest way to host a Replit app?

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

Does Replit have built-in hosting?

Publishing is built in. Autoscale (the default) bills per request, Reserved VM is a fixed monthly price, and Static is free apart from data transfer, but Static doesn't work for apps built with Replit Agent. Starter: one free published app, which goes down after 30 days, with a 'Made with Replit' badge.

Can I use a custom domain with Replit?

Connect in Tools → Domains; Replit charges nothing for the connection (you pay your domain provider), but Starter's one free app goes down after 30 days, so a lasting site needs Core ($20/month, $18/month billed annually).

What build command and output folder does a Replit app use?

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