warflash
Explore posts from serversMiddleware context changes aren't applied to `responseMeta(opts)` options
In our middleware I extend the ctx like this:
and then in the api handler where I'd like to add cache headers in the
reponseMeta
function I try accessing ctx. However it hasn't been modified there and returns an empty object. Accessing ctx in my router procedure itself properly returns the right context.
Any idea on how I can get this to work? Thank you!2 replies