Skip to content

Commit 95b7414

Browse files
add tutorial on custom domain migration (#2647)
1 parent f78108d commit 95b7414

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

deploy/images/dns_config.png

97.4 KB
Loading

deploy/reference/domains.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,10 @@ organization for use with other applications.
175175

176176
This removes the custom domain from your organization and deletes all domain
177177
assignments across all applications.
178+
179+
## Migrating a custom domain from Deploy Classic top Deno Deploy
180+
181+
If you have previously set up a custom domain on Deploy Classic and want to
182+
migrate it to Deno Deploy, we've created a
183+
[step-by-step tutorial](/examples/migrate_custom_domain_tutorial/) to guide you
184+
through the process.

examples/_data.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ export const sidebar = [
405405
href: "/examples/deploy_command_tutorial/",
406406
type: "tutorial",
407407
},
408+
{
409+
title: "Migrating a custom domain to Deno Deploy",
410+
href: "/examples/migrate_custom_domain_tutorial/",
411+
type: "tutorial",
412+
},
408413
{
409414
title: "AWS Lambda",
410415
href: "/examples/aws_lambda_tutorial/",
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
![DNS Records modal](/deploy/images/dns_config.png)
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

Comments
 (0)