input using z.or not working properly
How can I disable batching with fastify adapter?
Issue with monorepo architecture ant tRPC
Cannot read properties of undefined (reading 'messsage')
so I have read that at least error problem was fixed in newer versions, so we tried to update version, but then the builds started to fail. We get this error (photos in the thread) and more information
Using tRPC in CRON jobs
async createContext for Express Adapter
Is it possible to split the router definition with the imlementation?
Cache not working for `useQuery`
Zod File Upload Validation with Open-Api Support?
Zod validation and open-api support for File on the server?
is context cached?
JSON inferred router output not matching
JsonValue
(definitions below).
The inferred type from the router.procedure.query()
on a createTRPCProxyClient
instance comes back as expected, but the type definition using inferRouterOutputs<AppRouter>
types the Json data as string | null
.
Any ideas? Thanks. New to tRPC so sorry if this is a no-brainer....Best way to implement input based validation on a router procedure
[Help] Turbo shared types
import type { AppRouter } from "../../../web/src/server/routers/_app";
which is currently what I am doing.
So my question is how would I go about this? do I need to somehow share the types between the two? if so how would I do it?.
Should I just seperate trpc as an internal package?...Cache SSG helper response
createProxySSGHelpers
in GSSP with ssr: false
in the global config.
I trying to cache a response of a public procedure called there, but I'm running into a dead end.
I tried following the "App caching" example in the docs (https://trpc.io/docs/caching#app-caching), but the responseMeta
option is unavailable if ssr: false
. (At least TS tells me so)...Is there are any relationship between tRPC and RPC(or gRPC)?
Inference on routes & procedures
Input is too big for a single dispatch
Request header too large
I was able to fix this by setting maxURLLength
However, now I receive another error "Input is too big for a single dispatch"
...
How to manage custom errors (e.g. custom error codes) in tRPC?
typesafe permissions
awaiting for procedure & logging the response.