mirror of
https://github.com/Paris-est-Ludique/ForceOrange.git
synced 2025-06-09 01:34:21 +02:00
10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.vueApp.config.errorHandler = (error, instance, info) => {
|
|
// handle error, e.g. report to a service
|
|
}
|
|
|
|
// Also possible
|
|
nuxtApp.hook('vue:error', (error, instance, info) => {
|
|
// handle error, e.g. report to a service
|
|
})
|
|
}) |