Prisma is throwing __filename is not defined specifically in SST cron jobs
This is a weird issue, when I'm running prisma through SST's cron job, which I need in order to do database processing tasks, I get an error that says
but unfortunately this doesn't seem to disconnect the prisma client ever or something, and so I get errors down the line because there are too many prisma clients connected.
__filename is not definedand the cron job fails. I've tried a workaround with
but unfortunately this doesn't seem to disconnect the prisma client ever or something, and so I get errors down the line because there are too many prisma clients connected.