nanou
nanou
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
export let prismaEvents = new PrismaClient()
.$extends(
readReplicas({
url: config.EVENTS_DATABASE_READ_REPLICA_URL,
})
)
.$extends(
withOptimize({
apiKey: config.OPTIMIZE_EVENTS_API_KEY ?? "",
enable: true,
})
);
export let prismaEvents = new PrismaClient()
.$extends(
readReplicas({
url: config.EVENTS_DATABASE_READ_REPLICA_URL,
})
)
.$extends(
withOptimize({
apiKey: config.OPTIMIZE_EVENTS_API_KEY ?? "",
enable: true,
})
);
With :
"@prisma/client": "5.21.1",
"@prisma/extension-optimize": "latest",
"@prisma/extension-read-replicas": "0.3.0",
"@prisma/client": "5.21.1",
"@prisma/extension-optimize": "latest",
"@prisma/extension-read-replicas": "0.3.0",
And without any error in the console (except if I pass an empty API_KEY)
43 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
Hey I'm experiencing the same issue with a raw config, nothing shows in my dashboard 😉
43 replies