Skip to content

Commit fd2751b

Browse files
committed
Expand navigationFallback.exclude for static assets
Broadened the exclude list in staticwebapp.config.json to cover framework, content, JS directories, and common static file extensions. This prevents these assets from being rewritten to /index.html by the SPA fallback.
1 parent 465c4ec commit fd2751b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"navigationFallback": {
33
"rewrite": "/index.html",
4-
"exclude": [ "/images/*.{png,jpg,gif}", "/css/*" ]
4+
"exclude": [
5+
"/_framework/*",
6+
"/_content/*",
7+
"/images/*.{png,jpg,gif}",
8+
"/css/*",
9+
"/js/*",
10+
"*.{png,jpg,gif,ico,webp,svg,wasm}"
11+
]
512
}
613
}

0 commit comments

Comments
 (0)