fix: harden backend stability and test production utilities

This commit is contained in:
237899745
2026-07-27 12:17:57 +08:00
parent 2c5a22fad8
commit f90311e68c
20 changed files with 803 additions and 1388 deletions

9
backend/utils/archive.js Normal file
View File

@@ -0,0 +1,9 @@
let archiverModulePromise = null;
async function createZipArchive(options = {}) {
archiverModulePromise ||= import('archiver');
const { ZipArchive } = await archiverModulePromise;
return new ZipArchive(options);
}
module.exports = { createZipArchive };