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

feature: 测试cdn

parent 41d252c3
......@@ -25,11 +25,11 @@ export default (appInfo: EggAppConfig) => {
dir: path.join(appInfo.baseDir, 'logs')
};
config.static = {
prefix: '/public/',
dir: path.join(appInfo.baseDir, 'public'),
gzip: true
};
// config.static = {
// prefix: '/public/',
// dir: path.join(appInfo.baseDir, 'public'),
// gzip: true
// };
config.keys = '123456';
......
......@@ -171,7 +171,7 @@ module.exports = {
},
// mode: 'development',
devtool:'source-map',
cdn: 'https://misc.lkbang.net/',
cdn: 'https://misc.lkbang.net/qb/',
done(){
const COS = require('cos-nodejs-sdk-v5');
const cos = new COS({
......
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