Custom domains are available as part of the Encore Cloud Pro plan.
Setting up a Custom Domain
Follow these steps to connect your domain to your Leap application:- In your Leap project, click the Deploy button in the top-right corner
- After deployment, click the Connect domain button which will take you to the Encore Cloud dashboard
- On the Encore Cloud dashboard, navigate to the Custom Domains section
- Click the Add Domain button to open the domain configuration modal

- Enter your domain (e.g.,
your-domain.com) - The modal will show you the DNS record you need to add to your domain provider:
- Select the environment and gateway you want to assign the domain to:
- API Gateway: Choose this for your backend API endpoints (e.g.,
api.your-domain.com) - Frontend Gateway: Choose this for your user-facing frontend application (e.g.,
app.your-domain.com)
- API Gateway: Choose this for your backend API endpoints (e.g.,
- Click Add to complete the setup
- Add the specified DNS record with your domain provider (see DNS Configuration section below)
Your custom domain comes with DDoS protection powered by Cloudflare WAF.
DNS Configuration
After adding your domain, you’ll need to set up the appropriate DNS records with your domain registrar. Select your provider below for specific instructions.- Namecheap
- GoDaddy
- Cloudflare
- Google Domains
- Other Providers
- Log in to your Namecheap account
- Go to Domain List and click Manage next to your domain
- Select the Advanced DNS tab
- Click Add New Record
- Enter the following details:
- Type: CNAME Record
- Host: Enter your subdomain (e.g.,
apiforapi.your-domain.com) - Value:
custom-domain.encr.app - TTL: Automatic
- Click Save All Changes
Verifying Your Domain
After setting up the DNS record:- It may take some time for DNS changes to propagate (typically 15 minutes to 48 hours)
- You can check the status of your domain on the Encore Cloud dashboard
- Once verified, your application will be accessible via your custom domain
If you’ve set up multiple gateways with custom domains, make sure to configure your application to properly handle requests between them. For example, your frontend might need to know the URL of your API gateway to make requests.
Troubleshooting
If you encounter issues with your custom domain setup:- Verify that your DNS record is correct and matches the provided instructions
- Check if your DNS changes have propagated using a tool like dnschecker.org
- Ensure your domain doesn’t have conflicting DNS records
- Contact support via the Encore Cloud dashboard if you continue to experience issues