You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/essentials/history-mode.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,20 @@ Create a `vercel.json` file under the root directory of your project with the fo
199
199
}
200
200
```
201
201
202
+
### Azure Static Web App
203
+
Create a staticwebapp.config.json file in the public folder with the following configuration. If the route does not exist, Azure will redirects all requests to index.html except for assets and favicons.
204
+
```
205
+
{
206
+
"navigationFallback": {
207
+
"rewrite": "/index.html",
208
+
"exclude": [
209
+
"/assets/*",
210
+
"/favicons/*"
211
+
]
212
+
}
213
+
}
214
+
```
215
+
202
216
## Caveat
203
217
204
218
There is a caveat to this: Your server will no longer report 404 errors as all not-found paths now serve up your `index.html` file. To get around the issue, you should implement a catch-all route within your Vue app to show a 404 page:
0 commit comments