If you had a custom domain name assigned to your Bubble app prior to October 2019, you are considered a Legacy Customer.
If you have never assigned a custom domain to your Bubble app before, ignore the instructions marked for Legacy Customers.
There are three pieces to configuring a custom domain:
- Purchasing a custom domain at a registrar, such as NameCheap or DreamHost
- Registering your custom domain with Bubble, covered in Custom Domains and SSL
- Configuring your nameservers
Registrars often handle the work of serving your DNS records, but they don't need to. You can use any name server you want while keeping your registration with the registrar of your choice.
For your own convenience, you might prefer to have the same website manage both your domain registrations and name servers. If you have already purchased a domain and do not wish to pay a transfer fee to get all the features you'll need to configure your Bubble app, consider setting up a free account with a DNS provider that can provide all the features you need.
Legacy Customers: Before deciding what approach to take, read Migrating from a Legacy Domain to Cloudflare.
We recommend keeping your bare domain, and finding a DNS provider (name server) that supports ALIAS records. See Using a bare domain (example.com) for more details.
If you plan to use a subdomain (
app.example.com), any registrar or DNS provider will do. You can create a single CNAME record and everything will work. See Using a subdomain (app.example.com) for more details.
If you plan to use a bare domain (
example.com) make sure your registrar or DNS provider offers ALIAS or ANAME records. These are non-standard records, so if you have already purchased your domain or are a Legacy Customer, you may have to transfer your name servers. See the article Using a bare domain (example.com) for more details. This configuration is also the preferred configuration for www domains (
If you do not yet have a custom domain for your Bubble app and plan to host your site on a www domain (
www.example.com), you can use a feature variously called "URL Redirection," "Forwarding," or "Synthetic Records" to redirect the bare domain to www. Most registrars offer this service for free. See the article Using a www domain for more details.