@prisma/nextjs-monorepo-workaround-plugin

6.0.1 • Public • Published

Prisma Webpack Plugin

Ensures that your Prisma files are copied.

Next.js

const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

module.exports = {
  webpack: (config, { isServer }) => {
    if (isServer) {
      config.plugins = [...config.plugins, new PrismaPlugin()]
    }

    return config
  },
}

Webpack

const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

module.exports = {
  plugins: [new PrismaPlugin()],
}

Package Sidebar

Install

npm i @prisma/nextjs-monorepo-workaround-plugin

Weekly Downloads

41,572

Version

6.0.1

License

Apache-2.0

Unpacked Size

18.2 kB

Total Files

4

Last publish

Collaborators

  • prismabot
  • aqrln
  • pirix-gh