Does anyone have experience hosting Angular PWA apps in new Azure resource, Static Web Apps?
I tried to modified routes.json
file:
{
"routes": [
{
"route": "/*",
"serve": "/index.html",
"statusCode": 200
}
],
"mimeTypes": {
"json": "application/json",
"webmanifest": "application/json"
}
}
but without success.
When I deploy the same app to Azure Web App with web.config
<staticContent>
<mimeMap fileExtension="webmanifest" mimeType="application/json" />
<mimeMap fileExtension="json" mimeType="application/json" />
</staticContent>
PWA is installable.
Thanks.