-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Allow binaryTargets as a CLI option #15267
Copy link
Copy link
Open
Labels
Description
Problem
Having binaryTargets as an option only in the schema file means that we need to specify multiple targets for all our environments. e.g. Locally we are using "darwin" but we want to deploy "rhel-openssl-1.0.x" only.
At the moment, this is causing us headaches when we want to deploy Nextjs to Vercel which uses serverless environment and size is limited.
Suggested solution
CLI option:
npx prisma genearate --binaryTargets "rhel-openssl-1.0.x"
Alternatives
In a github workflow action, we are having to change the contents of the schema file before running the generate method which would remove the targets like "darwin" that we need locally.
Additional context
Reactions are currently unavailable