diff --git a/src/templates/typeScriptFiles.ts b/src/templates/typeScriptFiles.ts index 27715e4..1615e9e 100644 --- a/src/templates/typeScriptFiles.ts +++ b/src/templates/typeScriptFiles.ts @@ -37,6 +37,7 @@ export const defineWrappedResponseHandler = ( ): EventHandler => defineEventHandler(async (event) => { try { + const response = await handler(event) return { response } } catch (err) { // Error handling