P
Prisma3mo 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
jonfanz3mo 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
aadmaaOP3mo ago
ty @Jon Harrell
Want results from more Discord servers?
Add your server