Put your first app online: a Claude + Supabase + Replit stack
The struggle: Your app runs on the builder preview but you cannot work out how to deploy it to a real domain.
What you end up with: Your Replit app live on a web address with a production database, secrets stored safely and a short test after it is published.
Replit publishes from the Publish button, but the preview and the live site are separate. Claude builds the checklist, you run the security scan, and Supabase keeps production data separate from test data.
Tools: Claude, Supabase, Replit. Level: Pro. Time: 2 hours.
Use it if
- Your app works in the preview and you do not know the next step
- You are afraid of leaking keys when you publish
- You want a real domain
Skip it if
- You need strict uptime or large traffic: ask a developer to review the setup
- You only want to demo to a friend
The method
Write a publish plan (Claude: Chat)
Tell Claude what your app does, what data it stores and which keys it uses. Ask for a ordered checklist, including what to separate between test and live.
Prompt to copy:
I am about to publish a Replit app. App: [what it does]. Data: [what it stores]. Services and keys: [list names only, never values]. Write an ordered checklist: what to remove from the code, what goes in secrets, test data versus live data, who can open the site, what to test after publishing, and how to undo. Do not ask for any secret values.
You get: A checklist for your app.
Tip: Give Claude key names only, never the values.
Make a separate live database (Supabase: Project)
Create a second Supabase project for production, with row-level security on every table before you connect it. Keep your test data in the first project.
You get: A production database that starts empty.
Tip: Never point a live site at a database full of test rows.
Publish from the editor (Replit: Publish)
Select Publish in the upper right of the Project Editor. Review the .replit.app address. In Sharing, pick who can open it: Public, Password protected, Workspace only or Invite only. Run the Deep security scan if offered. Put production secrets in the publishing settings, not in code, then publish.
You get: A live URL.
Tip: Starter includes one published app that goes down after 30 days, so use Core or above for a lasting site. Test with Password protected or Invite only before going Public.
Test the live URL (Replit: Preview)
Open the live URL, not the preview, and run through sign up, the main action and one mistake. Fix in the editor, test, then select Republish. The address stays the same.
Prompt to copy:
Give me a 10 line test script for my live app at its published address: sign up, the main action, a wrong input, a logout and a refresh. Format: Step, Expected result. Short, in plain words. App description: [what it does].
You get: A tested live app.
Tip: The preview is a separate environment, so a test that passes there can fail live.
Plan a custom domain (Claude: Chat)
Ask Claude to write questions to put to your domain provider and the Replit domain guide. Follow Replit's current guide for the exact steps.
Prompt to copy:
I own the domain [domain] with [registrar]. I want it to open my Replit app. Write a step list of what I must find out, what record types the guide will ask for and a rollback in case the site breaks. Tell me to follow the official Replit domain guide for exact values.
You get: A domain checklist to follow beside the official guide.
Tip: Domain and DNS steps vary by host, so copy values only from the official guide.
Where this goes wrong
- Never put secret keys in the code or in a chat. Use secrets in the deployment settings.
- Have a person check login and payments before real customers use the site.
- DNS changes can take time to apply, so leave time before an announcement.
Swap a tool
- Lovable instead of Replit: Lovable publishes to its own address and supports custom domains on paid plans.
Sources
More like this
- Fix a broken app without breaking more
- A launch checklist with builder and database checks
- Check who can read your app's data
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.