fix(server): disable checksum check for r2 storage when using aws-s3 sdk (#9735)

This commit is contained in:
liuyi
2025-01-16 19:47:50 +08:00
committed by GitHub
parent 908afe19ee
commit 3828144849
4 changed files with 14 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ const SELF_HOST_CONFIG_DIR = '/root/.affine/config';
function generateConfigFile() {
const content = fs.readFileSync('./dist/config/affine.js', 'utf-8');
return content.replace(
/(^\/\/#.*$)|(^\/\/\s+TODO.*$)|("use\sstrict";?)|(^.*eslint-disable.*$)/gm,
/(^\/\/#.*$)|(^\/\/\s+TODO.*$)|("use\sstrict";?)|(^.*lint-disable.*$)/gm,
''
);
}