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

feature: 测试cdn

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