functionthatreturnsfalse
functionthatreturnsfalse
Explore posts from servers
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 4/5/2023 in #questions
How to define an async procedure?
if i make my procedure async, it seems to cause the request to hang on the client
9 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 4/5/2023 in #questions
How to define an async procedure?
do i have to make ALL of them async?
9 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 2/4/2023 in #questions
server component throws error
!close
3 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 2/4/2023 in #questions
server component throws error
I forgot to delete the 'use client' directive in the parent component, my bad.
3 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 2/3/2023 in #questions
api calls don't work in vercel
I'm not sure about my last solution, feels more like a bandaid, but at least it works.
5 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 2/3/2023 in #questions
api calls don't work in vercel
Ok, a few things were wrong. After digging a bit, it looks like the correct variable name is actually NEXT_PUBLIC_VERCEL_URL. Moreover, i dug into my api handler and found an unhandled case where i didn't send a response. I also converted my server component to a client component and fetched the data with a useEffect. ugly but works
5 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 1/14/2023 in #questions
prisma.user.create type is 'any'
yep, it worked,I guess I initialized prisma incorrectly.
9 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 1/14/2023 in #questions
prisma.user.create type is 'any'
I will refactor my code a little and report back if it works
9 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 1/14/2023 in #questions
prisma.user.create type is 'any'
OK, i tried something a bit weird. At first i was following the nextauth docs for setting up nextauth with Prisma: https://next-auth.js.org/adapters/prisma The docs mentioned creating this weird prismadb.ts file, i copy-pasted it from their docs to my code. Now, i removed that file and just accessed the prisma variable as they say so after you run the prisma generate command (aka importing PrismaClient and then const prisma = new PrismaClient() whereever in the code you want to use prisma) I did that and the intellisense is working now
9 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 1/14/2023 in #questions
prisma.user.create type is 'any'
I ran npx prisma generate, am I missing something here?
9 replies
TTCTheo's Typesafe Cult
Created by functionthatreturnsfalse on 1/14/2023 in #questions
prisma.user.create type is 'any'
9 replies