hachoter
Property 'query' does not exist on type ...
I think this is an issue on my end here is how I am defining everything
And in my client, I have this
But when I try to query like this
client.assets.images.query
i get an error property query does not exist, it correctly infers the type assets etc... but not query6 replies
Server side headers are not applied
Hi guys I have the following trpc client initialized
The problem is that the header doesn't get applied when it's being called on the server, I use a route to authenticate users and I wanna be able to call that from the server as well but I can't figure out how to pass the token, if it would be a regular fetch request I would simply add the cookie but in the callback function I don't have access to the request context, additionally I didn't find a way to add the headers on an individual query only on the client level
2 replies