diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 8db6c07c47..eb18d32967 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -27,6 +27,10 @@ mybatis.configuration.map-underscore-to-camel-case=true logging.file.path=/opt/metersphere/logs/${spring.application.name} # view spring.mvc.throw-exception-if-no-handler-found=true +# 开启 gzip 压缩 +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,text/javascript,image/jpeg +server.compression.min-response-size=2048 # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true diff --git a/frontend/vue.config.js b/frontend/vue.config.js index 50c7cbf1b9..455ea04148 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -5,7 +5,7 @@ function resolve(dir) { } module.exports = { - productionSourceMap: true, + productionSourceMap: false, devServer: { port: 8080, proxy: {