Is here a fromNodeMiddleware but for error hanfler ((err, req,res, next) => {}) #2951
Mittcio
started this conversation in
Help Wanted
Replies: 2 comments
-
defineNitroErrorHandler |
Beta Was this translation helpful? Give feedback.
0 replies
-
Nitro uses h3 as runtime server which supports global error handlers instead of middleware style of express.
As you noticed, you should use Example: https://stackblitz.com/edit/github-weasgzp4-yfodvndx?file=nitro.config.ts,server%2Ferror.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
latest
Reproduction
fromNodeMiddleware((error, req, res, next) => {})
Describe the bug
I think that not work h3App.use(fromNodeMiddleware((error, req, res, next) => {})) or h3App.router.use(fromNodeMiddleware((error, req, res, next) => {}))
Additional context
No response
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions