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.
- Send PR to
@logux/server with an API to define HTML of 404 and 500 page and use them in HTTP server.
- Read
assets/404.html and assets/500.html and pass content to that new API in server/module/assets.ts (if assets was enabled).
- Be sure that Content-Security-Policy works with inline
<style> of that pages.
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.
@logux/serverwith an API to define HTML of 404 and 500 page and use them in HTTP server.assets/404.htmlandassets/500.htmland pass content to that new API inserver/module/assets.ts(if assets was enabled).<style>of that pages.