|
| 1 | +--- |
| 2 | +title: "Migrating a custom domain from Deploy Classic to Deno Deploy" |
| 3 | +description: "Learn how to migrate your custom domain from Deploy Classic to Deno Deploy" |
| 4 | +url: /examples/migrate_custom_domain_tutorial/ |
| 5 | +--- |
| 6 | + |
| 7 | +If you have previously set up a custom domain on Deploy Classic and want to |
| 8 | +migrate it to Deno Deploy, follow these steps: |
| 9 | + |
| 10 | +## Add your domain to Deno Deploy |
| 11 | + |
| 12 | +1. Visit the [Deno Deploy dashboard](https://dash.deno.com) and navigate to the |
| 13 | + project you want to associate with your custom domain. |
| 14 | + |
| 15 | +2. Click the **"Settings"** tab. |
| 16 | + |
| 17 | +3. Under "Production Domains", click **"+ Add Domain"**. |
| 18 | + |
| 19 | +4. Enter your custom domain (e.g., `test.mywebsite.com`), select whether you |
| 20 | + want just the base url or base and wildcard, then click **"Save"**. |
| 21 | + |
| 22 | +This will kick off DNS record configuration, which may take a few minutes. |
| 23 | + |
| 24 | +You will be presented with DNS records that you need to add to your DNS |
| 25 | +provider. |
| 26 | + |
| 27 | +## Provision a TLS certificate |
| 28 | + |
| 29 | +In your DNS provider's settings, update your domain's DNS records to include the |
| 30 | +provided `_acme-challenge` CNAME record. This is necessary for Deno Deploy to |
| 31 | +verify your domain and provision a TLS certificate. |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +Once the DNS records are picked up, provision a new TLS certificate by clicking |
| 36 | +the **"Verify DNS and provision certificate"** button. |
| 37 | + |
| 38 | +## Update DNS records |
| 39 | + |
| 40 | +In your DNS provider's settings, remove any existing CNAME/A/AAAA records for |
| 41 | +your domain and replace them with the CNAME or ANAME records provided by Deno |
| 42 | +Deploy. |
| 43 | + |
| 44 | +This may take some time due to DNS propagation delays. Allow up to 48 hours for |
| 45 | +the changes to take effect before removing the domain from Deploy Classic. |
0 commit comments