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

fix: 放开字体文件和html

parent c9e90e02
......@@ -25,6 +25,12 @@ export default (appInfo: EggAppConfig) => {
dir: path.join(appInfo.baseDir, 'logs')
};
config.static = {
prefix: '/public/',
dir: path.join(appInfo.baseDir, 'public'),
gzip: true
};
config.keys = '123456';
config.middleware = [
......
......@@ -49,7 +49,7 @@ class upload2Cos {
}
_isValid (path) {
const format = ['.ico', '.html', '.ttf', '.woff', '.woff2'];
const format = ['.ico', '.html'];
return !format.some(v => path.endsWith(v))
}
......
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