Hi,
The recommanded way to host an web app is to separate static from dynamic content. In Azure you can do that with App Gateway:
https://learn.microsoft.com/en-us/azure/application-gateway/how-application-gateway-works
You can create rules that will route the static content to Static Web App and dynamic content to App Service.
Hope this helps!