Songkeys
Explore posts from servers[v11] Change responseMeta in procedure
Is there a way to do so? I need to add a cache header to one specific api.
I found this doc quite confused me. I don't have
createTRPCNext
in my app (mine is app rotuer created from t3 template). And this seems a global caching rather than a single api route one.
Thank you in advanced.3 replies
Is it possible to request directly from user's browser rather than using a server proxy in trpc?
I have been using trpc in my project and it's been working really well. However, some requests need to be sent from the browser to the target API instead of our server. I am considering creating a React-Query API wrapper directly, but I'm concerned it might not align well with trpc usage. Is it feasible to implement something like this:
or
I hope I have clarified my points. Thank you.
2 replies