Songkeys
Songkeys
Explore posts from servers
DDeno
Created by Songkeys on 10/10/2024 in #help
A guide for js library maintainer
I just read the Deno 2 release blog, and it really got me excited about joining this ecosystem! And as a library maintainer, I’d love to know the recommended guidelines. For instance, if I want to deliver a library, it seems like I should write it in the Node.js (npm) style since Deno is compatible with Node, but not the other way around. However, this might not be great news for the Deno ecosystem and its future development. We could also suggest that maintainers publish to both npm and JSR, but that would require extra effort and might not be worth it due to Deno's compatibility with Node. I might've missed something. Any clarification would be greatly appreciated! Thanks!
8 replies
TtRPC
Created by Songkeys on 9/9/2024 in #❓-help
[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
RRailway
Created by Songkeys on 9/2/2024 in #✋|help
missing required env in template still gives user ability to click the "deploy" button.
No description
7 replies
RRailway
Created by Songkeys on 9/2/2024 in #✋|help
getaddrinfo ENOTFOUND redis.railway.internal
No description
4 replies
TtRPC
Created by Songkeys on 8/19/2024 in #❓-help
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:
import { api } from "~/trpc-browser"
const res = api.something.useQuery()
import { api } from "~/trpc-browser"
const res = api.something.useQuery()
or
const res = api.something.useQuery({}, {
requestFromBrowser: true
})
const res = api.something.useQuery({}, {
requestFromBrowser: true
})
I hope I have clarified my points. Thank you.
2 replies
TtRPC
Created by Songkeys on 2/29/2024 in #❓-help
After upgrading to 11.0.0-next-beta.300, every request throws zod error
No description
35 replies