Custom Domains
Use your domain name for your Replit Deployments to showcase your app from a professional, branded web address.
Custom domains let you assign your domain name, such as www.my-incredible-app.com
to your Replit Deployment.
While Replit provides a free subdomain in the format <your-deployment-subdomain-name>.replit.app
, using
a custom domain lets you create a more memorable address.
A custom domain name can help brand recognition and trust with your app’s users.
Watch the following video for a quick overview of setting up Custom Domains:
Features
Custom Domains are available for the following Deployment types:
The following table compares Replit’s subdomains with custom domains:
Feature | Replit Subdomain | Custom Domain |
---|---|---|
Hostname customization | Subdomain only | Any domain that you own |
DNS update time | Instant | Up to 48 hours |
Security Certificates (TLS/SSL) | Provided by Replit | Provided by Replit |
Price | Free | Pay your domain provider |
Usage
Follow the steps below to set up your custom domain:
You might experience setup issues if you have one of the following:
- Multiple
A
records for the same domain name that point to different servers. A
andAAAA
records co-exist for the same domain since Replit only supportsA
records.- Cloudflare proxied domain records since Replit cannot automatically renew security certificates for that type.
Add your custom domain
Enter your custom domain name in the text field. You can use a registered domain or include a subdomain.
For example, hat-tip.cc
is the registered domain and my.hat-tip.cc
includes subdomain my
.
Add the DNS records to your domain registrar
Replit generates DNS records that you must provide to your domain registrar. A domain registrar is the service that manages your domain name, such as GoDaddy or Namecheap.
Copy the A
and TXT
record values from Replit and paste them into your domain registrar’s
DNS management section. If your domain registrar does not support @
as a hostname, use your registered domain name.
Optional: Add a subdomain
To add a subdomain to your deployment, add a new A
record with the same IP address
in your provider’s DNS management section.
For example, if you want to add my-subdomain.hat-tip.cc
, you must:
- Copy the
A
andTXT
record values from Replit to your registrar - Add a new
A
record with a hostname value ofmy-subdomain
using the same IP address as your primary domain
Wait for DNS propagation to complete
After adding the records, you must wait for them to propagate online. This can take between a few minutes and 48 hours.
When the propagation completes, your Domains tab should show the “Verified” status next to the domain name as shown below:
Load the domain in your browser to verify that it works.