Skip to content

Commit dc74861

Browse files
committed
chore: wip lambda - custom binary target
1 parent e8db8b6 commit dc74861

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/packages/cli/scripts/download.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ async function main() {
2525
)
2626
} else {
2727
createLockFile()
28+
let binaryTargets = undefined
29+
if (process.env.PRISMA_CLI_BINARY_TARGETS) {
30+
binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS.split(',')
31+
}
2832
await download({
2933
binaries: {
3034
'query-engine': binaryDir,
@@ -35,6 +39,7 @@ async function main() {
3539
showProgress: true,
3640
version,
3741
failSilent: true,
42+
binaryTargets,
3843
}).catch((e) => debug(e))
3944

4045
cleanupLockFile()

0 commit comments

Comments
 (0)