optionally adding an $extends clause to prisma export

how can I accomplish the following fuctionality: basically I want to be able to access db replicas only in my production instance and not in any other environment. what I'm trying to do export default process.env.DB_REPLICA_URL_1 && process.env.DB_REPLICA_URL_2 ? prisma.$extends( readReplicas({ url: [process.env.DB_REPLICA_URL_1, process.env.DB_REPLICA_URL_2], }), ) : prisma; but obviously this has ltos of typing errors. what can I do in this case?
1 Reply
sylvester stallone
I can't possibly be the only person who wants to know how to conditionally deploy replicas on prisma....