prisma / blogr-nextjs-prisma

111 stars 83 forks source link

Hot reload fix for development environments #2

Open 0jg opened 3 years ago

0jg commented 3 years ago

Next.js hot reloading on a development environment creates a new instance of Prisma (and any other database client). See https://github.com/vercel/next.js/issues/7811. This checks the environment of the Next.js app, and spins-up a Prisma instance accordingly.