升级依赖项
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
app: {
|
||||
port: 3000, // 监听的端口
|
||||
devHost: 'localhost', // 开发环境下打开的地址,监听了0.0.0.0,但是不是所有设备都支持访问这个地址,用127.0.0.1或localhost代替
|
||||
devHost: '127.0.0.1', // 开发环境下打开的地址,监听了0.0.0.0,但是不是所有设备都支持访问这个地址,用127.0.0.1或localhost代替
|
||||
open: true // 是否打开浏览器
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ module.exports = app => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const createRenderer = (bundle, options) => {
|
||||
return createBundleRenderer(bundle, Object.assign(options, {
|
||||
cache: LRU({
|
||||
cache: new LRU({
|
||||
max: 1000,
|
||||
maxAge: 1000 * 60 * 15
|
||||
}),
|
||||
@ -81,6 +81,7 @@ module.exports = app => {
|
||||
html = '404 | Not Found'
|
||||
} else {
|
||||
status = 500
|
||||
// console.log(e)
|
||||
console.log(chalk.red('\nError: '), e.message)
|
||||
html = '500 | Internal Server Error'
|
||||
}
|
||||
|
Reference in New Issue
Block a user