Namecheap & Subdomains
Since I’m obsessed with trying new layouts (and switching between layouts an obnoxious number of times before “settling” on a final version,) I figured I should probably add subdomains to my site to host different development branches.
Link the subdomain to namecheap
- Go to the namecheap admin page.
- Click the
manage
button for the desired domain. - Go to
Advanced DNS
–>HOST RECORDS
–>Add New Record
. - Select
ALIAS Record
as the type. - Enter the desired subdomain (e.g.
blog
,dev
) underHost
.
Add subdomain to AWS Amplify
- Go to the AWS Amplify admin portal.
- Click the
Manage subdomains
button, then add the desired subdomain (e.g.blog
,dev
). - In the dropdown, select the git branch to deploy to this subdomain.
- Go back to the previous page, then select
Domain management
–>Actions
–>View DNS records
. - Under
2. Configure DNS provider
, make note of theHost
(subdomain),Type
(CNAME), and value.