From 22b79435cfc3f95fe8b3fb6db42b8471e3626452 Mon Sep 17 00:00:00 2001 From: Dennis Thomasen Date: Thu, 6 Jan 2022 09:58:46 +0100 Subject: [PATCH] Added Azure Static Web Apps history example --- docs/guide/essentials/history-mode.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/guide/essentials/history-mode.md b/docs/guide/essentials/history-mode.md index 4e570374b..7f8276960 100644 --- a/docs/guide/essentials/history-mode.md +++ b/docs/guide/essentials/history-mode.md @@ -97,6 +97,21 @@ For Node.js/Express, consider using [connect-history-api-fallback middleware](ht ``` +#### Azure Static Web Apps +1. Create the file staticwebapp.config.json in your public folder with the following: + +``` +{ + "navigationFallback": { + "rewrite": "/index.html", + "exclude": [ + "/img/*.{png,jpg,gif,webp}", + "/css/*" + ] + } +} +``` + #### Caddy v2 ```