diff --git a/packages/vue-app/template/client.js b/packages/vue-app/template/client.js index ab2f93f13d..07a1cae970 100644 --- a/packages/vue-app/template/client.js +++ b/packages/vue-app/template/client.js @@ -38,10 +38,14 @@ const NUXT = window.<%= globals.context %> || {} Object.assign(Vue.config, <%= serialize(vue.config) %>)<%= isTest ? '// eslint-disable-line' : '' %> <% if (isDev) { %> -const logger = consola.withScope('nuxt:ssr') const logs = NUXT.logs || [] -logs.forEach(logObj => logger[logObj.type](logObj)) -delete NUXT.logs +if (logs.length > 0) { + console.group("%c🚀 Nuxt.js SSR Logs", 'font-size: 110%') + const logger = consola.withScope('nuxt:ssr') + logs.forEach(logObj => logger[logObj.type](logObj)) + delete NUXT.logs + console.groupEnd() +} <% } %> <% if (debug) { %> // Setup global Vue error handler