PrismaP
Prisma7mo ago
4 replies
Shadow Software

help node sea app with prisma

I created an API using Fastify and bundled it into an executable using Node.js SEA. It works fine on my machine, but when I send it to someone else, it throws an error saying it can't find the query_engine.dll.node file.
I’ve figured out that the issue is due to the location of this DLL. Currently, I have to manually recreate the same folder structure (e.g., src/util/prisma/client) next to the executable and place the DLL there for it to work.
However, instead of relying on this specific folder structure, I want the executable to load the query_engine.dll.node directly from the directory where the executable is located. How can I achieve this? (translated)
Was this page helpful?