fix: panic rendering error pages
Alan Pearce alan@alanpearce.eu
Sat, 13 Jul 2024 16:50:05 +0200
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M internal/server/error.go → internal/server/error.go
@@ -3,6 +3,7 @@ import ( "net/http" + "go.alanpearce.eu/searchix/frontend" "go.alanpearce.eu/searchix/internal/components" "go.alanpearce.eu/searchix/internal/config" "go.alanpearce.eu/x/log" @@ -22,6 +23,7 @@ ExtraHeadHTML: config.Web.ExtraHeadHTML, Sources: sources, Code: code, Message: message, + Assets: frontend.Assets, } w.Header().Set("Cache-Control", "no-store") w.Header().Del("Vary")