Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 51e46c6

Browse files
docs(serverless-component): update readme with custom domain name instructions (#366)
Co-authored-by: Daniel <danielconde9@gmail.com>
1 parent dc07a00 commit 51e46c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ $ serverless
9797

9898
In most cases you wouldn't want to use CloudFront's distribution domain to access your application. Instead, you can specify a custom domain name.
9999

100-
Make sure you've purchased your `domain` within Route53:
100+
You can use any domain name but you must be using AWS Route53 for your DNS hosting. To migrate DNS records from an existing domain follow the instructions
101+
[here](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html). The requirements to use a custom domain name:
102+
* Route53 must include a _hosted zone_ for your domain (e.g. `mydomain.com`) with a set of nameservers.
103+
* You must update the nameservers listed with your domain name registrar (e.g. namecheap, godaddy, etc.) with those provided for your new _hosted zone_.
104+
105+
The serverless next.js component will automatically generate an SSL certificate and create a new record to point to your CloudFront distribution.
101106

102107
```yml
103108
# serverless.yml

0 commit comments

Comments
 (0)