'Firebase Custom Domain 502 Bad Gateway

I'm hosting a react app on Firebase. When you navigate to one of the default URL's, the app works fine. I tried using Namecheap for a custom domain and everything is verified and should be working fine, however, I get a 502 Bad Gateway error when I navigate to my custom URL. My DNS setup is as follows: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source