mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
1a7b570c82
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
21 lines
512 B
TypeScript
21 lines
512 B
TypeScript
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.hook('vue:error', (..._args) => {
|
|
console.log('vue:error')
|
|
// if (process.client) {
|
|
// console.log(..._args)
|
|
// }
|
|
})
|
|
nuxtApp.hook('app:error', (..._args) => {
|
|
console.log('app:error')
|
|
// if (process.client) {
|
|
// console.log(..._args)
|
|
// }
|
|
})
|
|
nuxtApp.vueApp.config.errorHandler = (..._args) => {
|
|
console.log('global error handler')
|
|
// if (process.client) {
|
|
// console.log(..._args)
|
|
// }
|
|
}
|
|
})
|