Skip to content

Commit 10ad7ac

Browse files
author
Piotr Stachaczynski
committed
fix: use single-wildcard route patterns in staticwebapp.config.json
Azure Static Web Apps deploy validation rejects exclude patterns with more than one '*' (e.g. /api/**); a single trailing '*' already matches nested paths.
1 parent b541c20 commit 10ad7ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/public/staticwebapp.config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"navigationFallback": {
33
"rewrite": "/index.html",
44
"exclude": [
5-
"/api/**",
5+
"/api/*",
66
"/env.js",
7-
"/scripts/**",
8-
"/docs/**",
7+
"/scripts/*",
8+
"/docs/*",
99
"*.{css,js,png,gif,ico,svg,woff,woff2,ttf,eot,map}"
1010
]
1111
},

0 commit comments

Comments
 (0)