fix(config): enable total timing by default when server.timing is enabled (#6371)

This commit is contained in:
Xin Du (Clark) 2019-09-09 15:44:36 +01:00 committed by Pooya Parsa
parent eadde4e88c
commit 8ccca220ed

View File

@ -390,5 +390,10 @@ export function getNuxtConfig (_options) {
}
}
const { timing } = options.server
if (timing) {
options.server.timing = { total: true, ...timing }
}
return options
}