hakkub
hakkub
TTCTheo's Typesafe Cult
Created by hakkub on 9/19/2024 in #questions
"Invalid signing secret" after upgrading to v7
SOLVED: Just needed to updgrade node to v20 lol.
2 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
I ran into this issue on a new project and after a couple of hours as a last resort I downloaded the latest version of VSCode and the issue went away. It appears to have been an IDE issue not a prisma issue. Hope this helps!
21 replies
TTCTheo's Typesafe Cult
Created by Çağlar on 1/3/2023 in #questions
What is the best practice to upload file using multer and create a record in Prisma
i would recommend using something like S3. Moreover if you're hosting on vercel, using presigned url's to get aroud the 5mb max upload size.
16 replies
TTCTheo's Typesafe Cult
Created by theFern on 12/21/2022 in #questions
How do you switch from main branch to development branch in Planetscale + Prisma?
You need to create a new branch that is branched off of production. Upon creating this new branch, you will get a new connection string. Use that new connection string locally in your dev env. Then you would run npx prisma migrate dev to push any schema changes
2 replies
TTCTheo's Typesafe Cult
Created by AdmiralGeneralAladeen on 10/30/2022 in #questions
How do you push schema changes to a dev branch with planetscale and prisma
You would need to create a dev branch that is branched off of production in your planetscale dashboard. Then use that connection string locally in your code. Then to deploy any changes to dev you just run npx prisma migrate dev Then when you want to merge those changes on the dev branch to production, you would create a deploy request in the PS dashboard.
7 replies
TTCTheo's Typesafe Cult
Created by hakkub on 12/21/2022 in #questions
Does tRPC replace client-side form validation i.e react-hook-form?
Ahhh I would just create 1 schema object and use for both client side and trpc call.
5 replies
TTCTheo's Typesafe Cult
Created by hakkub on 12/21/2022 in #questions
Does tRPC replace client-side form validation i.e react-hook-form?
Ahh okay. Tysm!
5 replies