Fixed it, it was because I was missing an A record in my dns setting that should point to the ip address, which I managed to retain from the static web app.
It had nothing to do with the app rather dns misconfiguration.
If you are facing similar issue contact the dns provider, they may walk through to resolve the issue.
Thanks all