Mocha supports custom domains, allowing you to deploy your Mocha applications to your own domain. This feature gives you complete control over your website’s URL and branding.
Buy a domain directly in Mocha or from your preferred domain registrar (e.g., Namecheap, GoDaddy, Squarespace Domains)
You cannot use *.mocha.app subdomains as custom domains. These are reserved for Mocha’s built-in hosting. Use a domain you own from an external registrar instead.
2
Access Domain Settings
In your Mocha project settings, navigate to the “Domains” section
3
Link Your Domain
Enter your domain name and follow the verification process. This will link your domain to your Mocha account.
This can take a while, up to 48 hours depending on the domain provider.
4
Associate the Domain with a Mocha Project
Select the project you want to associate the domain with.
Custom domain setup
5
Publish your Project
Once the domain is connected, you can simply publish as usual, and your Mocha app will be live at your custom domain.
DNS changes can take up to 48 hours to propagate, though it typically happens within 1-2 hours. Here’s what to check:If your domain stays “stuck” in the pending state. We recommend simply “Deleting” it in Mocha and connecting it again. The process can be flakey and fails sometimes, but typically will work the second time.We apologize for the inconvenience. and are working on improving the process.
I'm seeing 'Connection not private' or SSL certificate errors
SSL certificates are provisioned automatically when you connect a domain, but they can take a few minutes to activate. If you’re seeing certificate errors:
Wait 10-15 minutes after connecting your domain for the SSL certificate to be issued
Try a different browser or try an incognito/private window
Clear your browser cache or try an incognito/private window
If you recently changed DNS providers or settings, you may need to wait for the changes to propagate before SSL works correctly.
How do I disconnect or remove a custom domain?
To remove a custom domain from your project:
Go to your project settings
Navigate to the “Domains” section
Find the domain you want to remove
Click the remove/disconnect option
After removing, your app will still be accessible via its .mocha.app subdomain (if you have one set up).
How do I unpublish my app?
To unpublish your app and take it offline:
Click the publish button to open the publish modal
Toggle the selector from “Published” to “Unpublished”
Once unpublished, your app will no longer be accessible to visitors. You can republish at any time.
My www subdomain isn't working (Cloudflare Error 1001)
Mocha currently only supports the exact domain you connect — www subdomains are not automatically configured. For example, if you connect mydomain.com, then www.mydomain.com will not work and will show a Cloudflare Error 1001.This is a known limitation we’re actively working to fix. In the meantime, here’s a workaround:
Set up domain forwarding at your registrar — most registrars (GoDaddy, Namecheap, etc.) offer a “Forwarding” or “Redirect” option in their domain settings
Forward www.mydomain.com → mydomain.com using a 301 (permanent) redirect
This ensures visitors who type www.mydomain.com are automatically sent to your working domain
Do not add a CNAME record pointing www to *.mocha.app — this will not work because the www hostname is not registered in our infrastructure. Use your registrar’s forwarding/redirect feature instead.
My domain was working but stopped
If your domain suddenly stopped working:
Check if your subscription is active - Custom domains require a paid plan
Verify DNS settings haven’t changed - Sometimes DNS providers reset settings
Check domain expiration - Make sure your domain registration hasn’t expired
If you’re having trouble connecting your domain and the above doesn’t help, reach out to support@getmocha.com with your domain name and a screenshot of your DNS settings.
We’ve partnered with IONOS, a leading domain registrar, to offer seamless domain purchases directly within Mocha. This integration allows you to search, purchase, and manage your domains all in one place.
Access the domain purchase modal from your project settings