Serverless deployments: Just making a schema level change to a repository does not invalidate node_modules
cache that contains generated Client
#7818
Labels
kind/improvement
An improvement to existing feature and code.
team/client
Issue for team Client.
topic: deployment/netlify
topic: deployment/vercel
topic: deployment-platform
Milestone
This is more a theory than a bug report, but this could explain why sometimes deployments to Netlify and other deployment providers do not actually deploy a new schema.
Example: https://github.com/netlify/build-image/blob/d51b4da41df1087448804e27626a32d83f50380f/run-build-functions.sh#L184-L197
npm install
is only run if the sha ofpackage.json
is different, which it does not have to be if you only updated your schema. Nonpm install
means not post install hook, means noprisma generate
.We should get a better overview here by designing a few test setups, and testing them at a few of these potentially affected providers to see how they handle that.
The text was updated successfully, but these errors were encountered: