I have a monorepo with packages and apps that uses yarn 3.6.1. When I deploy the web app to Vercel I have to include the unrelated apps in .vercelignore
since the website does not use them and it makes the deploy massive for now reason.
However this causes an issue where when yarn install
runs on Vercel it doesn't have those other workspaces to worry about and it results in a different yarn.lock
, throwing an error YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
How do I get around this?