From 64b206a25324e27efdb6cb457bf814d07962534e Mon Sep 17 00:00:00 2001 From: nyemade-uversky <55847877+nyemade-uversky@users.noreply.github.com> Date: Wed, 29 Jun 2022 15:40:46 -0600 Subject: [PATCH] Custom 404 page (#2575) * add responseOverrides for hugo 404 page add responseOverrides for hugo 404 page instead of the current Azure static web apps 404 page * Update staticwebapp.config.json * Add missing comma Signed-off-by: nyemade-uversky <55847877+nyemade-uversky@users.noreply.github.com> --- daprdocs/staticwebapp.config.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/daprdocs/staticwebapp.config.json b/daprdocs/staticwebapp.config.json index df65c3647..e59042aed 100644 --- a/daprdocs/staticwebapp.config.json +++ b/daprdocs/staticwebapp.config.json @@ -1,6 +1,11 @@ { "globalHeaders": { - "X-Frame-Options": "DENY" + "X-Frame-Options": "DENY" + }, + "responseOverrides": { + "404": { + "rewrite": "/404.html", + "statusCode": 404 + } } } -