-
-
Notifications
You must be signed in to change notification settings - Fork 686
feat: Allow to set Prisma Engine directory in config #1815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So to add to what @ericallam said, something like this @luap2703: build: {
extensions: [
prismaExtension({
// The version you're using
version: "6.5.0",
// Your schema relative path
schema: "../../packages/database/prisma/schema.prisma",
}),
],
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Provide environment information
System:
OS: macOS 15.2
CPU: (12) arm64 Apple M2 Pro
Memory: 74.70 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.19.0 - /opt/homebrew/bin/node
Yarn: 4.5.1 - /opt/homebrew/bin/yarn
npm: 10.8.2 - /opt/homebrew/bin/npm
Describe the bug
For the prismaExtension, it is currently not possible to define the path/directory of the engine files required to run.
We're having a large monorepo and the engine file is nested.
While we can copy it using:
prisma won't search in the copied directory.
Three ways to mitiage this would be:
additionalFiles
prop to the prisma exension, allowing for copying the files or setting env variables for the runReproduction repo
To reproduce
Demo setup + move the engine file somewhere.
Additional information
This is truly one of the greatest projects we've seen for a long time(!!!). We have been spending literally MONTHS in time on debugging and running AWS lambdas, eventually moving to batch/fargate tasks, step functions, etc. etc..
The dev experience is 1000x better! Props on you!
The text was updated successfully, but these errors were encountered: