Skip to content

Commit 72f015d

Browse files
Fix Prisma 6.6+ compatibility by adding --schema flag for schema folders
Co-Authored-By: Eric Allam <[email protected]>
1 parent ccc9764 commit 72f015d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/build/src/extensions/prisma.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class PrismaExtension implements BuildExtension {
186186
commands.push(
187187
`${binaryForRuntime(
188188
manifest.runtime
189-
)} node_modules/prisma/build/index.js generate ${generatorFlags.join(" ")}` // Don't add the --schema flag or this will fail
189+
)} node_modules/prisma/build/index.js generate --schema=./prisma/schema ${generatorFlags.join(" ")}` // Add the --schema flag for prisma@^6.6.0 compatibility
190190
);
191191
} else {
192192
prismaDir = dirname(this._resolvedSchemaPath);

0 commit comments

Comments
 (0)