image for site
On this page you can find a sample implementation of using the CoAlias plugin to add a domain to your Bubble app and route it an Bubble page.
We use a couple of actions inside the workflows. Here is a explanation of how these actions works:

1. In the workflow thats blue.

CoAlias - Domain - Add: This action adds the domain to your CoAlias account and points it to your app. This action will return an error if the domain is already added to your account or its owned by an other account.

2. In the workflow thats green you will find optional actions that do the following:

CoAlias - Route - Create or Update: This action adds a route that forwards traffic to a certain page. In this case /landingpage/id. You can see how this works on https://landingpage-using-routes.customdomain.site/ that opens the page https://coalias-plugins.bubbleapps.io/version-test/landingpage/1704193635234x218553703257921600.

CoAlias - Metatags - Create or Update: This actions add custom meta data to the domain. It uses the source /* so the meta data is added to all pages of that domain.

CoAlias - File - Create or Update: This action creates a custom robots.txt to inform search engines what pages should be index. You can see a sample here https://landingpage-using-routes.customdomain.site/robots.txt

3. Add your DNS Records

The section add your dns records is using the data source Domain - Get that gets the records needed to be added by the user. 99.9% of users will only need to add the dns record and point to their domain to 76.76.21.21. The Domain - Get data action returns the records that need to be added to connect the domain and sometimes verify it!
image for site
Add your domain
Here you can configure the custom domain for you landingpage.
Add your DNS records
Point your domain to our servers to make it work. You can use the following records:
A record with name@and value76.76.21.21
TXT record with name_coaliasand valueverification
Domain connected
Your domain is successfully connected to this app.
Bubble
Built on Bubble