Commit eec75939 authored by 郝聪敏's avatar 郝聪敏

feature: 上传cdn

parent a28af064
......@@ -198,8 +198,8 @@ module.exports = {
}
readFileList(path.resolve(__dirname, './public'), filesPath);
const filesList = filesPath.map(filepath => {
const filesPathArr = filepath.split('/');
const Key = `qb/${filesPathArr[filesPathArr.length - 1]}`;
const publicPath = filepath.split('quantum-blocks-h5')[1];;
const Key = `qb${publicPath}`;
return {
Bucket: 'misc-1258270469',
Region: 'ap-beijing',
......
Markdown is supported
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