next-prisma-plugin

Next.js plugin to enable hot reloading of the Prisma Client

Usage no npm install needed!

<script type="module">
  import nextPrismaPlugin from 'https://cdn.skypack.dev/next-prisma-plugin';
</script>

README

NextJS Plugin for Prisma (Very Experimental)

Here Be Dragons npm npm (tag) PRs Welcome

Enables Hot Reloads for the Prisma Client

Install

yarn add -D next-prisma-plugin

Configuration

next.config.js

const withPrismaPlugin = require('next-prisma-plugin')

module.exports = withPrismaPlugin()

TODO

  • Windows Support
  • Tests
  • Automatic page reloads

Contributing

cd next-prisma-plugin
yarn
cd test-app && yarn
cd .. 
yarn dev