refactor: instantiate AssetCollection explicitly
1 file changed, 2 insertions(+), 1 deletion(-)
changed files
M internal/server/error.go → internal/server/error.go
@@ -11,6 +11,7 @@ ) func createErrorHandler( config *config.Config, + assets *frontend.AssetCollection, log *log.Logger, ) func(http.ResponseWriter, *http.Request, string, int) { return func(w http.ResponseWriter, r *http.Request, message string, code int) {@@ -23,7 +24,7 @@ ExtraHeadHTML: config.Web.ExtraHeadHTML, Sources: sources, Code: code, Message: message, - Assets: frontend.Assets, + Assets: assets, } w.Header().Set("Cache-Control", "no-store") w.Header().Del("Vary")