When your Leap application is ready for production, you may want to serve it from your own domain rather than the default Encore-provided URL. This guide walks you through the process of connecting a custom domain to your Leap application.
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.
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., api for api.your-domain.com)
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.