We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd7dd8 commit 7878973Copy full SHA for 7878973
packages/build/src/extensions/prisma.ts
@@ -186,7 +186,7 @@ export class PrismaExtension implements BuildExtension {
186
commands.push(
187
`${binaryForRuntime(
188
manifest.runtime
189
- )} node_modules/prisma/build/index.js generate ${generatorFlags.join(" ")}` // Don't add the --schema flag or this will fail
+ )} node_modules/prisma/build/index.js generate --schema=./prisma/${usingSchemaFolder ? "schema/schema.prisma" : "schema.prisma"} ${generatorFlags.join(" ")}`
190
);
191
} else {
192
prismaDir = dirname(this._resolvedSchemaPath);
0 commit comments