better-auth + @convex.dev + @nuxt.com = The holy trinity of modern web dev. Weโve built a solid module so you don't have to. Check out "better-convex-nuxt" (1/4)
Post
I looked into it and am loving what I see! Is there a good way to connect Zod validation to Convex fns/schemas? Or have Zod schemas as the original source definition? That would help a lot with sharing types for form states for example. First time touching Convex so I might be missing something too!
I made a working example: github.com/lupinum-dev/... & github.com/lupinum-dev/.... Let me know what you think ๐
github.comfeat: add Zod validation helper for Convex functions by Mat4m0 ยท Pull Request #10 ยท lupinum-dev/better-convex-nuxtSummary
Add validateZodInput() utility for server-side Zod validation in Convex functions
Add isZodValidationError() type guard for error handling
Export via better-convex-nuxt/zod path
Add compre...
0 reposts1 like