clay / amphora

Middleware for Express that composes components into renderable pages
https://claycms.gitbooks.io/amphora/
MIT License
31 stars 23 forks source link

Adds errorHandler plugin #704

Closed felkerch closed 1 year ago

felkerch commented 1 year ago

Modifies renderExpressRoute to pass page rendering errors back to the site. This enables our site middleware to respond to 404s and other errors.

To use this, initialize amphora with a function named errorHandler. This field is optional; if you don't provide it, you'll see the current behavior.