prisma / blogr-nextjs-prisma

111 stars 83 forks source link

Hot reload fix for development environments #1

Closed 0jg closed 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 vercel/next.js#7811. This checks the environment of the Next.js app, and spins-up a Prisma instance accordingly.

0jg commented 3 years ago

(Closed as merging into the wrong branch, see new pull request)