Replies: 2 comments
-
|
@Palmik hello! I'm trying to implement this but is not working. Whenever I throw an error in any function the global middleware is not catching it . |
Beta Was this translation helpful? Give feedback.
-
|
ok sorry for anyone wondering.. if you create a middleware with type function is working fine: export const errorLoggingMiddleware = createMiddleware({ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to set-up a global ServerFn middleware to purge message from any server-side errors? I would like to do this as a paranoid precaution in case there is some sensitive information in some of the error messages (this might be exposed through a 3rd party dependency as well).
Stack trace is already stripped automatically, it seems.
EDIT: This is possible with global middlware. Global middleware does not work after "devinxi" unless you import the file somewhere, e.g. in
router.ts.Beta Was this translation helpful? Give feedback.
All reactions