Allow serving custom error page#393
No reviewers
Labels
No labels
breaking
bug
build_pr_image
documentation
d̶u̶p̶l̶i̶c̶a̶t̶e̶
feature
good first issue
improvement
i̶n̶v̶a̶l̶i̶d̶
open questions
performance
refactor
research required
No milestone
No project
No assignees
2 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/pages-server!393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Gnaaarwhal/pages-server:error-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It might be useful for those self-hosting a Codeberg Pages instance to be able to serve a different error page than the one embedded with go:embed
66b179b650to72f83a414472f83a4144toef44077f7b@ -54,0 +57,4 @@contents, err := os.ReadFile("custom/error.html")if err != nil {if !os.IsNotExist(err) {log.Err(err).Msg("could not load custom error page")It would be nice to give the users a absolute path where the pages-server expects the file to be.
ef44077f7bdf06003584Thanks for your contribution!