It will also be the default domain if when using the Dub API. Here’s an example of how it works with our TypeScript SDK:
config.js
- Go to the Dub dashboard.
- Click on the Domains tab on the top navigation bar.
- Click on the
⋮button of domain that you want to set as the primary domain, which will open a dropdown menu. - In the dropdown menu, click on the Set as Primary button, which will open the primary domain modal.
- Click on the Set as primary domain button in the modal.
Voilà! You have successfully set a primary domain on Dub. Now, the domain you have set as the primary domain will be the default domain in your Dub link builder and when using the Dub API.