feat: 修改为public目录
This commit is contained in:
parent
27b95ca504
commit
485099ebfe
|
@ -333,7 +333,7 @@ const processDirectory = async (dir) => {
|
|||
};
|
||||
|
||||
// 主目录
|
||||
const mainDir = path.join(__dirname, '../public/audio');
|
||||
const mainDir = path.join(__dirname, '../public');
|
||||
|
||||
console.log('开始音视频优化处理...');
|
||||
console.log(`主目录: ${mainDir}`);
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Worker, isMainThread, parentPort, workerData } from 'worker_threads';
|
|||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const sourceDir = 'public/images';
|
||||
const sourceDir = 'public';
|
||||
const SMALL_FILE_THRESHOLD = 5 * 1024; // 5KB
|
||||
|
||||
// 动态计算最佳参数
|
||||
|
|
Loading…
Reference in New Issue