Skip to content

Commit 7878973

Browse files
committed
apple
1 parent 3cd7dd8 commit 7878973

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/${usingSchemaFolder ? "schema/schema.prisma" : "schema.prisma"} ${generatorFlags.join(" ")}`
190190
);
191191
} else {
192192
prismaDir = dirname(this._resolvedSchemaPath);

0 commit comments

Comments
 (0)