Hi, is it good practice to check-in the auto-gener...
# orm-help
o
Hi, is it good practice to check-in the auto-generated clients generated by
npx prisma generate
to Git, or should I run this command as part of my
prestart
step in
npm
? Context: I am deploying my web app in an air-gapped system and the
npx prisma generate
tried to fetch some files from an online URL and failed miserably. Now I’m debating between: 1. Runing
npx prisma generate
as part of the Docker build - to online fetch the auto-generated files 2. Checking-in the prisma client to Git
1
o
Definitely prefer option 1. The client can be massive . Wouldn't want that in the git history.
h
Yeah, you should run the command in the build system and its output is idempotent and checking the client in Git will pollute its history.
o
Thanks