File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ http.createServer(app).listen(3000);
86
86
## lite-server
87
87
88
88
https://github.com/johnpapa/lite-server
89
- [ ![ GitHub stars] ( https://img.shields.io/github/stars/johnpapa/lite-server.svg?style=social&label=Star )] ( https://github.com/johnpapa/lite-server ) ( [ example source ] ( https://github.com/johnpapa/lite-server/issues/61#issuecomment-205997607 ) )
89
+ [ ![ GitHub stars] ( https://img.shields.io/github/stars/johnpapa/lite-server.svg?style=social&label=Star )] ( https://github.com/johnpapa/lite-server )
90
90
91
91
File: ` bs-config.js `
92
92
@@ -100,8 +100,11 @@ var apiProxy = proxy('/api', {
100
100
101
101
module .exports = {
102
102
server: {
103
+ // Start from key `10` in order to NOT overwrite the default 2 middleware provided
104
+ // by `lite-server` or any future ones that might be added.
105
+ // Reference: https://github.com/johnpapa/lite-server/blob/master/lib/config-defaults.js#L16
103
106
middleware: {
104
- 1 : apiProxy
107
+ 10 : apiProxy
105
108
}
106
109
}
107
110
};
You can’t perform that action at this time.
0 commit comments