Fraps
Fraps
PPrisma
Created by Fraps on 1/21/2025 in #help-and-questions
Using Prisma inside firebase functions
Hey, just adding to the topic if anyone finds this post later. Everytime you deploy a firebase function, each function will run it's own npm install. So in order for the client library to be created for each function and in my case the SQL scripts for the new typescript feature, I added this line to scripts under package.json "postinstall": "npx prisma generate --sql --schema=prisma/schema.prisma"
5 replies
PPrisma
Created by Fraps on 1/21/2025 in #help-and-questions
Using Prisma inside firebase functions
Thanks @Nurul (Prisma), that helped a lot. I didn't know about this ecosystem-tests, that's great
5 replies