Pieter
05/17/2022, 10:47 PMPieter
05/17/2022, 10:48 PMRichard Ward
05/17/2022, 11:20 PMbinaryTarget?
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "rhel-openssl-1.0.x"]
}janpio
binaryTargets is indeed for the case where you develop on onr platform, but then deploy to another platform where the build might be happening on another OS than the deployment, or the deployment just zips up a deployment (like AWS Lambda function deploys do).
I will reply in the issue though to ask a few follow up questions.janpio
Pieter
06/02/2022, 11:49 AMPieter
06/02/2022, 11:51 AMjanpio
native) but that breaks for environments where you deploy an already generated Client with the binary - like on AWS Lambda. If you build/generate on a different OS than what runs on AWS Lambda, the engine file can not be correct in that case.janpio
Pieter
06/05/2022, 4:35 PMnative and it should be all goodjanpio
Pieter
06/15/2022, 1:32 PMjanpio