Comments (12)
Hey @ndimatteo
The deployment logs look like a typical build nothing out of the ordinary. My dataset is set to production and my project name is slugified like so example-name
.
I've just refreshed my tokens and it still isn't working.
I get that this probably more of an issue with my setup so I'll close for now
Cheers for your help
from sanity-plugin-vercel-deploy.
@ansmlc check out this answer here, this is likely a cache issue: #26 (comment)
from sanity-plugin-vercel-deploy.
Hey @SMccarrick !
What does your Vercel project show for deployment logs? And are you using the same sanity dataset and project name between your studio and frontend?
Given the nature of how the deployment plugin works, it's agnostic to the actual Studio you set it up in, as it's simply redeploying the specified Vercel project.
So, if your Vercel project isn't properly hooked up to the sanity project and dataset that you published changes to you won't see any updates reflected when you trigger a deploy.
from sanity-plugin-vercel-deploy.
@ndimatteo having the same issue as above. The deployment shows correctly in the Vercel Dashboard however the content is not updated. When I manually redeploy the sanity vercel deployment again through the dashboard it works.
Update: After further investigation I'm finding that if I make a published change, I have to reload the Sanity Studio before hitting the deploy button - then the updated content will show once deployed. Could this be a state issue?
from sanity-plugin-vercel-deploy.
Hey there @NikkiJonesR ! Would you mind going into a bit more detail about what you're experiencing? I'm not sure I follow!
Just to reiterate a few things in case it helps:
- The Vercel Deploy plugin is agnostic to the studio it's installed in. The plugin only triggers a build of the specified Vercel project. You'll need to make sure the project ID and dataset hooked up to your Vercel project matches with where you're editing.
- You'll want to always make sure any changes in the associated Sanity project dataset is
published
before triggering a deployment manually from the "Deploy" tab.
Looking forward to hearing more 🤘
from sanity-plugin-vercel-deploy.
Hi @ndimatteo, yep for sure. I can confirm that the config is setup correctly, and changes are published.
Here's the issue I'm experiencing:
- Publish a change in the Studio
- Trigger deploy
- The content updates on the site as expected
- Return to the Studio and publish another change
- Trigger deploy
- The content doesn’t update on the site
- Return to the Studio and reload the page
- Trigger deploy
- The content updates on the site as expected
Hope this helps!
from sanity-plugin-vercel-deploy.
Thanks @NikkiJonesR, do you know how the page in question is rendered? is it SSG or ISR by chance? There have been issues raised about ISR pages with Vercel and rebuilds, and I'm wondering if that's a factor here.
If the deploy is triggering every time, and you're seeing it rebuild in Vercel, I'm struggling to see how this plugin would have anything to do with the build itself, as that's all offloaded to Vercel and how your front-end is built.
Curious if there's any other insight into your specific setup that may shine some light on this!
from sanity-plugin-vercel-deploy.
Hi @ndimatteo the page I was testing on is SSG - nothing fancy we're doing there. It could be a Vercel issue, but it seems peculiar to me that when I do a hard refresh on Sanity it deploys as expected.
from sanity-plugin-vercel-deploy.
@NikkiJonesR - Ditto on the hard refresh thing. Did you find anything out?
from sanity-plugin-vercel-deploy.
I'm using Hull and supposedly this plugin as well. Same thing is happening. Deploying alone doesn't update the content without doing reloads.
from sanity-plugin-vercel-deploy.
Observed the same thing as did @NikkiJonesR with swell.is on nextjs app. Newly published contents don't get refreshed unless I redeploy, any quick fix?
from sanity-plugin-vercel-deploy.
@Nateight8 check #26 (comment)
from sanity-plugin-vercel-deploy.
Related Issues (20)
- Suggestion: Make "Remove" less prominent in the UI
- No Team found! Make sure the token you provided is valid and that the team’s slug correspond to the one you see in Vercel HOT 3
- Protect Delete Action HOT 3
- Deploys from Sanity not clearing cache HOT 2
- Build error when running Sanity HOT 2
- Sanity Studio v3 compatbility HOT 2
- plugin for DigitalOcean HOT 2
- All deployments are stuck HOT 1
- Status is not accurately reported when using buildCache=false param HOT 2
- Question: Deployments/Publishing and should I enable Sanity `liveEdit` on all documents? HOT 1
- 'Deploy' tab not showing in production HOT 2
- Project not found error HOT 2
- Deploy works with old cache HOT 3
- > ฉันสร้างโปรเจ็กต์บน Sanity Deploy โดยทำตามคำอธิบาย Readme ของคุณ มันปรับใช้ถ้าฉันคลิกที่ปุ่มปรับใช้ แต่ไม่ปรับใช้โดยอัตโนมัติและแสดงข้อผิดพลาด [ไม่พบโครงการ] นี่คือภาพหน้าจอของข้อผิดพลาด ![ภาพ](https://user-images.githubusercontent.com/75736745/242378479-23e1dea7-0187-4f5b-ad27-cb91a8e709c8.png)
- "Error" badge appears, and no way of telling when a deployment completed/failed/in progress HOT 4
- Configuration in code rather than with UI HOT 1
- Getting issue with Spacetime HOT 5
- Mismatch Description for the `Add Project` Dialogue
- Delete deployment button not showing HOT 1
- Disabling deletion in production also disables it in development environment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanity-plugin-vercel-deploy.