@data-fair/dev-server 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/app.js +3 -0
package/package.json
CHANGED
package/server/app.js
CHANGED
|
@@ -60,6 +60,9 @@ app.use('/app', createProxyMiddleware({
|
|
|
60
60
|
changeOrigin: true,
|
|
61
61
|
ws: true,
|
|
62
62
|
selfHandleResponse: true, // so that the onProxyRes takes care of sending the response
|
|
63
|
+
onProxyReq (proxyReq, req, res) {
|
|
64
|
+
proxyReq.setHeader('Accept-Encoding', 'identity') // disable compression
|
|
65
|
+
},
|
|
63
66
|
onProxyRes (proxyRes, req, res) {
|
|
64
67
|
const configuration = fs.existsSync('.dev-config.json') ? fs.readJsonSync('.dev-config.json') : {}
|
|
65
68
|
// console.log('inject config', configuration)
|