Ghost/core/server/web/shared/middlewares
Naz 260a47da83 🐛 Fixed 500 when instance has an invalid redirects config
refs https://linear.app/tryghost/issue/CORE-86/fix-failing-site-instance-when-redirects-file-is-invalid

- The site was returning a 500 for all routes whenever an invalid redirects file was uploaded.
- The cause of this issue surfacing was this change - 0962b3ed45 (diff-10784969d51d9abb9d620625a14b31661ff3f98dbfb0ea17186186a8151bacfaL35) . Previously an instance always had some sort of a working router and when the configuration failed it still functioned as an empty redirects router. After the change no router was mounted resulting in a 500
- Test cases fixing the problem will folllow
2021-10-04 15:25:37 +02:00
..
api Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
brute.js Added userAuth brute middleware to members auth endpoint (#13152) 2021-07-19 09:40:38 +01:00
cache-control.js Refactored cache-control mw to remove dependencies 2020-04-22 18:01:01 +01:00
custom-redirects.js 🐛 Fixed 500 when instance has an invalid redirects config 2021-10-04 15:25:37 +02:00
error-handler.js Corrected deprecation comment 2021-07-02 13:50:11 +04:00
index.js Removed non-existent labs file export 2021-08-13 13:41:38 +01:00
maintenance.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
pretty-urls.js Swapped to American English spellings 2021-06-09 16:39:06 +01:00
uncapitalise.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
url-redirects.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00