Skip to content

pnpm workspace + turbo + vercel: only redeploy works #9642

Closed Answered by anthonyshew
rsodre asked this question in Help
Discussion options

You must be logged in to vote

Hi, welcome to Turborepo!

The reason you're seeing this is that the dist directory for sdk is not being cached. Turborepo only knows to cache directories and files that are in the outputs key, so a cache hit won't restore dist given your turbo.json.

Luckily, the fix is simple: Add a "dist/**" member to your outputs array, and then the outputs for the sdk will be cached for the times when you hit cache.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rsodre
Comment options

Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants