log
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
export default defineEventHandler(async (event) => {
|
||||||
|
console.log('[Middleware] Incoming request:', event.path)
|
||||||
|
})
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import { defineNitroPlugin } from 'nitropack'
|
||||||
|
|
||||||
|
export default defineNitroPlugin((nitroApp) => {
|
||||||
|
nitroApp.hooks.hook('error', (error, event) => {
|
||||||
|
console.error('[Nitro Error]', error)
|
||||||
|
})
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user