From a455b41ece2c5e3c34dbd7f4e608df9ba029459c Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 10 Dec 2022 23:27:45 +0800 Subject: [PATCH] feat: add 404 redir for azure static app --- staticwebapp.config.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 staticwebapp.config.json diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..d3d5585 --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,11 @@ +{ + "responseOverrides": { + "400": { + "statusCode": 301, + "redirect": "/404" + }, + "404": { + "rewrite": "/404" + } + } +} \ No newline at end of file