P
Prisma7d ago
aadmaa

Prisma deployment in API with TypedSql

I added a TypedSQL query to my API but it breaks my deployment CI because where "RUN npx prisma generate" does not require access to the database, "RUN npx prisma generate --sql" wants access to the database to do that. Is there any good way to build the client without access to the database, if using the --sql flag?
Solution:
No, this is a strict requirement of the --sql flag. You need to have access to a database in order to generate the correct types.
Jump to solution
2 Replies
Solution
jonfanz
jonfanz7d ago
No, this is a strict requirement of the --sql flag. You need to have access to a database in order to generate the correct types.
aadmaa
aadmaa7d ago
ty @Jon Harrell
Want results from more Discord servers?
Add your server