mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 06:31:39 +08:00
DEV: Reorder custom ember-cli middleware to restore error page (#24383)
Ember-cli has built-in error pages when there is a build error. Previously these were not being used in Discourse because our custom proxy middleware was too early in the stack. This commit reorders things so that the "broccoli-watcher" middleware runs before our custom proxy. It also disables the `historySupportMiddleware`, which doesn't make sense in our 'always proxy' setup.
This commit is contained in:
parent
02cb262b2e
commit
3e45837d78
@ -9,9 +9,11 @@
|
||||
],
|
||||
"ember-addon": {
|
||||
"before": [
|
||||
"serve-files-middleware",
|
||||
"history-support-middleware",
|
||||
"broccoli-serve-files",
|
||||
"proxy-server-middleware"
|
||||
],
|
||||
"after": [
|
||||
"broccoli-watcher"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -70,6 +70,8 @@ module.exports = function (defaults) {
|
||||
backburner:
|
||||
"node_modules/@discourse/backburner.js/dist/named-amd/backburner.js",
|
||||
},
|
||||
|
||||
historySupportMiddleware: false,
|
||||
});
|
||||
|
||||
// TODO: remove me
|
||||
|
Loading…
x
Reference in New Issue
Block a user