This pastebin is the lib/db.ts Prisma client setup I use so you don’t keep re-initializing Prisma on every hot reload. It’s a small thing, but it matters a lot for dev experience and avoiding wasted connections.
You'll be taken to Pastebin to complete your purchase.