spec
TTCTheo's Typesafe Cult
•Created by spec on 4/4/2024 in #questions
Getting an error on Vercel but not locally.
Hii there. I tried deploying my project after completion but while deployment I'm getting this error:
Type error: Property 'revalidateSSG' does not exist on type '{ session: { user: { name?: string | null | undefined; email?: string | null | undefined; image?: string | null | undefined; } & { id: string; }; expires: string; }; db: PrismaClient<{ log: ("warn" | "error" | "query")[]; }, never, DefaultArgs>; }'.
The code is working perfectly fine locally but not on vercel. I tried checking the environment variables but all of them seem to be correct. I am assuming prisma is a reason for this error since I did have a ton of issues with it while developing. But could someone suggest what might be the reason for this?2 replies