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);
8686## lite-server
8787
8888https://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 )
9090
9191File: ` bs-config.js `
9292
@@ -100,8 +100,11 @@ var apiProxy = proxy('/api', {
100100
101101module .exports = {
102102 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
103106 middleware: {
104- 1 : apiProxy
107+ 10 : apiProxy
105108 }
106109 }
107110};
You can’t perform that action at this time.
0 commit comments