Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy works with old cache #43

Open
Cardoso-topdev opened this issue Jun 1, 2023 · 3 comments
Open

Deploy works with old cache #43

Cardoso-topdev opened this issue Jun 1, 2023 · 3 comments

Comments

@Cardoso-topdev
Copy link

When I click on the Deploy button on the Sanity Deploy tab, the deploy launch with the old cache.
If I redeploy it without the existing Build Cache(by unchecking the checkbox), it works well, but it doesn't work if I click on the Deploy button on Sanity.
Is there a way to deploy without the old cache?
image

@chrischabot
Copy link

chrischabot commented Aug 22, 2023

In case anyone else runs into this issue: You can disable the build cache by adding ?buildCache=false to the deploy webhook URL

https://vercel.com/docs/deployments/deploy-hooks

@matt0rtega
Copy link

matt0rtega commented Sep 27, 2023

Also experience this. In order to deploy correctly I have to go into the terminal locally, run yarn build, and publish the updated .vercel/output/static/index.html. It seems like that file is not being regenerated and the cached one is being used.

@chrischabot I set ?buildCache=false&forceNew=true but it still didn't work.

@byebyers
Copy link

I was able to add ?buildCache=false to my deploy hook in Sanity. I also added the updated deploy hook to Vercel which I think was what did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants