In this quick guide, we will show you how to automatically customize your preview URL when a new environment has been created using the Qovery CLI. By following these steps, you can create a custom domain for your service and link it to your DNS provider.Documentation Index
Fetch the complete documentation index at: https://qovery-erebe-skills.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Qovery CLI installed
- Access to your DNS provider
Step 1: Create a Custom Domain for Your Service
To create a custom domain for your service, run the following command in your terminal:app name with the name of your application and app.domain.name with your desired custom domain.
Use --organization, --project, --environment flags to specify the organization, project, and environment where you want to create the custom domain.
Step 2: Retrieve the Validation Domain
To get the validation domain required for the next step, run the following command:app name and app.domain.name with the appropriate values. This command will output the validation domain.
Step 3: Create a CNAME Record in Your DNS Provider
Use the validation domain from the previous step to create a CNAME record in your DNS provider. The CNAME record should point to the validation domain. Example with Route53:Step 4: Redeploy Your Application
Once the DNS changes have propagated, redeploy your application to complete the process.app-{PR ID}.domain.name.