-
|
How can I disable remote caching on vercel? in a project using prisma it only gives issues, because it thinks that it cached when it didn't and nothing of prisma is correctly cached, and instead, nothing is generated and the build fails I managed to fix the issue disabling cache on the specific repo that has the prisma instance: "db#generate": {
"cache": false
},but remote caching gives issues on projects with a lot of environment variables, where https://turborepo.org/docs/features/caching#alter-caching-based-on-environment-variables-and-files is not straight-forward and we have to add "--force" for the Next.js builds |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
You have a few options for disabling remote caching depending on your execution context. LocallyOption 1.Run turbo unlink
Option 2Run with --force
On VercelOption 1
Option 2Update your build script to include --force
In CIOption 1Update your build script to include --force
With that being said, the Prisma issue you're experiencing sounds like it should be investigated separately - would you mind creating an issue for this with some more details? |
Beta Was this translation helpful? Give feedback.
-
|
I'm having this issue w/ Prisma and it's insanely annoying. I have to opt-out of remote caching just so my client will generate. |
Beta Was this translation helpful? Give feedback.
You have a few options for disabling remote caching depending on your execution context.
Locally
Option 1.
Run turbo unlink
Option 2
Run with --force
On Vercel
Option 1
Disable globally
Option 2
Update your build script to include --force
In CI
Option 1
Update your build script to include --force