PrismaP
Prisma2y ago
6 replies
Antonin

cacheStrategy is never

error :

Type '{ ttl: number; swr: number; }' is not assignable to type 'never'.ts(2322)
(property) cacheStrategy: never



// prisma.ts
import { PrismaClient } from '@prisma/client'
import { withAccelerate } from '@prisma/extension-accelerate';

export const prisma = new PrismaClient().$extends(withAccelerate());
Solution
okey is good all work i have conflict ( DATABASE_URL x2 in .env )
Was this page helpful?