Luca
Explore posts from serversCDCloudflare Developers
•Created by Luca on 10/22/2024 in #pages-help
Failed to publish your Function. Got error: binding DB of type d1 failed to generate. Please try aga
Facing this error when attempting to deploy via NuxtHub.
4 replies
Error handling: Zod errors and manually thrown TRPCErrors have different shape
If zod validation fails, the client-side
error.message
contains a JSON encoded array of errors, but if a TRPCError is thrown in a procedure, error.message
is simply the error message.
Why do they have a different shape? How should I go about this? Should I try to standardize both to a JSON encoded array on the server? Or should I try to distinguish the two scenarios on the client-side?4 replies
DTDrizzle Team
•Created by Luca on 6/1/2023 in #help
noob help: INSERT with JOIN SQL to Drizzle
Frontend developer dabbling with SQL for the first time in years. With the help of ChatGPT I have the following query which works as intended.
How do I construct with Drizzle such that I can supply my values using the
.values()
method?
7 replies