Skip to content

Add custom error pages to self-hosted version #255

Description

@ai

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions