Ghost/core/frontend/web/middleware
Sam Lord de3a45a805
Fixed theme error handler (#14363)
no issue

Prevents errors from being uploaded to Sentry when a 404 happens in Ghost Admin. At the moment, 404s in Ghost Admin create an ENOENT error in express' static library. Our generic 404 handler at the end will only intercept requests that don't have any errors in the context, so a simple middleware can strip out 404 errors just before we add in our own.

The Ghost-specific error that we attach to requests does not get uploaded to Sentry :)
2022-03-22 15:32:55 +00:00
..
error-handler.js Fixed theme error handler (#14363) 2022-03-22 15:32:55 +00:00
handle-image-sizes.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
index.js Moved theme-specific error handling to frontend 2021-11-29 17:04:01 +00:00
redirect-ghost-to-admin.js Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
serve-favicon.js Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
serve-public-file.js Updated servePublicFile to honor v= cache keys 2021-11-23 12:49:53 +00:00
static-theme.js Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00