Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom error pages to self-hosted version #255

Open
ai opened this issue Sep 17, 2024 · 0 comments
Open

Add custom error pages to self-hosted version #255

ai opened this issue Sep 17, 2024 · 0 comments

Comments

@ai
Copy link
Contributor

ai commented Sep 17, 2024

On production static server we have custom pages for 404 and 500 error:

https://dev.slowreader.app/500.html
https://dev.slowreader.app/404.html

But we don’t have such for self-hosted version when assets are served from Logux server.

  1. Send PR to @logux/server with an API to define HTML of 404 and 500 page and use them in HTTP server.
  2. Read assets/404.html and assets/500.html and pass content to that new API in server/module/assets.ts (if assets was enabled).
  3. Be sure that Content-Security-Policy works with inline <style> of that pages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready to Take
Development

No branches or pull requests

1 participant