Custom body object validation not working as intended when NODE_ENV=production
#585
Labels
bug
Something isn't working
NODE_ENV=production
#585
What version of Elysia.JS is running?
^1.0.10
What platform is your computer?
Linux 5.4.0-174-generic x86_64 x86_64
What steps can reproduce the bug?
I'm using this code to validate the body of a specific route:
and this is my
Elysia#onError
:What is the expected behavior?
I expect this response:
What do you see instead?
I get this response:
Additional information
I get the wrong validation error response only when using
bun start
(NODE_ENV=production bun src/index.ts
). When I start the server withbun dev
orbun --watch src/index.ts
/bun src/index.ts
(the--watch
option does not change anything) I get the expected results.The text was updated successfully, but these errors were encountered: