Hello, I am trying to set a custom path for the qu...
# orm-help
s
Hello, I am trying to set a custom path for the query engine library in my lambda. I have set it like so:
Copy code
PRISMA_QUERY_ENGINE_LIBRARY=/opt
And when I
Copy code
ls /opt
I get the following output:
Copy code
libquery_engine-rhel-openssl-1.0.x.so.node
But when I run the lambda I still get error:
Copy code
"Runtime.UnhandledPromiseRejection: Error: Query engine library for current platform \"linux-arm64-openssl-1.0.x\" could not be found.",
        "You incorrectly pinned it to linux-arm64-openssl-1.0.x",
        "",
        "This probably happens, because you built Prisma Client on a different platform.",
        "(Prisma Client looked in \"/var/task/src/libquery_engine-linux-arm64-openssl-1.0.x.so.node\")",
        "",
        "Searched Locations:",
        "",
        "  /.prisma/client",
        "  /var/task",
        "  /var/task/src",
        "  /var/task/src",
        "  /tmp/prisma-engines",
        "  /var/task/src",
        "",
        "You already added the platforms \"darwin\", \"linux-arm64-openssl-1.0.x\" to the \"generator\" block",
        "in the \"schema.prisma\" file as described in <https://pris.ly/d/client-generator>,",
        "but something went wrong. That's suboptimal.",
        "",
        "Please create an issue at <https://github.com/prisma/prisma/issues/new>",
        "    at process.<anonymous> (file:///var/runtime/index.mjs:775:15)",
        "    at process.emit (node:events:527:28)",
        "    at emit (node:internal/process/promises:140:20)",
        "    at processPromiseRejections (node:internal/process/promises:274:27)",
        "    at processTicksAndRejections (node:internal/process/task_queues:97:32)"
Any idea what am I missing? EDIT: Switching engine type to
binary
and uploading the binary, worked!
1