Skip to content

Commit

Permalink
Try separating routes for static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
OLILHR committed Oct 29, 2024
1 parent 90177fa commit 74cf61c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@
}
},
"routes": [
{
"route": "/_app/*",
"statusCode": 200
},
{
"route": "/images/*.{png,jpg,gif}",
"statusCode": 200
},
{
"route": "/css/*",
"statusCode": 200
},
{
"route": "/js/*",
"statusCode": 200
},
{
"route": "/fonts/*",
"statusCode": 200
},
{
"route": "/*",
"serve": "/index.html",
Expand All @@ -25,6 +45,8 @@
},
"mimeTypes": {
".json": "application/json",
".svg": "image/svg+xml"
".svg": "image/svg+xml",
".js": "application/javascript",
".css": "text/css"
}
}

0 comments on commit 74cf61c

Please sign in to comment.