diff --git a/nuxt.config.ts b/nuxt.config.ts index 1f04bf9..5e4800a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -73,5 +73,9 @@ export default defineNuxtConfig({ }, ssr: false, + + nitro: { + logLevel: 'debug' + }, }); \ No newline at end of file diff --git a/plugins/error-handler.ts b/plugins/error-handler.ts new file mode 100644 index 0000000..e8293b1 --- /dev/null +++ b/plugins/error-handler.ts @@ -0,0 +1,5 @@ +export default defineNitroPlugin((nitroApp) => { + nitroApp.hooks.hook('error', (error, event) => { + console.error('[Nitro Error]', error) + }) +}) \ No newline at end of file