Commit ff7757bf authored by chenos's avatar chenos
Browse files

fix: remove compress middleware

parent 29d386a6
No related merge requests found
Showing with 0 additions and 14 deletions
+0 -14
......@@ -2,7 +2,6 @@ import path from 'path';
import send from 'koa-send';
import serve from 'koa-static';
import { PluginOptions } from '@nocobase/server';
import compress from 'koa-compress';
export default {
name: 'client',
......@@ -11,19 +10,6 @@ export default {
if (root && !root.startsWith('/')) {
root = path.resolve(process.cwd(), root);
}
this.app.use(compress({
// filter (content_type) {
// return /text/i.test(content_type)
// },
threshold: 20480,
// gzip: {
// flush: require('zlib').constants.Z_SYNC_FLUSH
// },
// deflate: {
// flush: require('zlib').constants.Z_SYNC_FLUSH,
// },
// br: false // disable brotli
}));
this.app.middleware.unshift(async (ctx, next) => {
if (!root) {
return next();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment