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:Jump to 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.2 Replies