I am experiencing a 500 error on my custom domain for a few minutes after pushing new updates to production and completing the deployment. After few minutes, the site returns to normal. This issue occurs only on the custom domain, while the default Vercel domain works without any problems immediately after deployment.
Here’s an overview of my setup:
I purchased the domain from Namecheap.
I created an SSL certificate using AWS Certificate Manager.
I set up a hosted zone in AWS Route 53 and connected the certificate via CNAME. I also pointed Namecheap’s nameservers to AWS Route 53.
Finally, I connected the custom domain on Vercel to AWS Route 53 using CNAME and A records.
Could you please help me investigate why this 500 error occurs and guide me on how to resolve it?