error
This commit is contained in:
parent
8eb2375629
commit
fbcd5cb5e8
@ -74,4 +74,8 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
ssr: false,
|
ssr: false,
|
||||||
|
|
||||||
|
nitro: {
|
||||||
|
logLevel: 'debug'
|
||||||
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
5
plugins/error-handler.ts
Normal file
5
plugins/error-handler.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export default defineNitroPlugin((nitroApp) => {
|
||||||
|
nitroApp.hooks.hook('error', (error, event) => {
|
||||||
|
console.error('[Nitro Error]', error)
|
||||||
|
})
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue
Block a user