serverless-webpack-prisma icon indicating copy to clipboard operation
serverless-webpack-prisma copied to clipboard

`--data-proxy` command deprecated in most recent version of prisma

Open timpetri opened this issue 1 year ago • 0 comments

Hi,

Just wanted to give a heads up that users of this plugin may see issues since the the 5.2.0 release of prisma. The --data-proxy parameter has been deprecated in favor of --no-engine when using prisma generate.

Since this package by default runs npx prisma generate --data-proxy it may end up picking up/installing the latest version.

I noticed that the ability to specify a version has been added, so that can be used to circumvent this issue. A more proper fix is conditionally deciding which parameter to use based on version or similar.

timpetri avatar Sep 07 '23 14:09 timpetri