We host our site on Netlify with Netlify Edge and use Route53 to manage our DNS.
- Our Netlify app:
- Our domain:
We managed to point correctly our main domain to the production Netlify app build by creating 2 records in Route53:
example.compoint to 22.214.171.124
Now, everything works fine at this point. In our set up, we don’t use Netlify auto-build, but create a build from Bitrise and deploy via Netlify CLI instead.
We have 3 environments:
production. While production is in
example.com, we cannot manage to point
dev.example.com to 1http://dev–example.netlify.app` with CNAME in Route53. Been looking all over the places for a solution but found nothing atm.
I have tried:
dev.example.compoint to 126.96.36.199
I have tried
- CNAME: dev.example.com point to dev–example.netlify.app
The only solution is using Netlify DNS, but we use Route53. The only solution I could think of now is to create 2 extra apps in Netlify, 1 for
staging and 1 for
dev, and point to the production build of these apps from Route53, but that is a nasty solution.
This is a crucial feature for us because we need to serve multiple environments for our domains for deep-linking. So any help is highly appreciated
By the way, I don’t know where I found the
netlifyglobalcdn link and the load balancer IP to add in the record for Lambda Edge to work, but I can’t find that again. Maybe we should add it into the documentation.
Resources I have tried
Custom subdomain for branch deploy (edited)