Closed courtyenn closed 1 year ago
Found the answer while looking at the integration of StoryBlok <> Astro: https://docs.astro.build/en/guides/cms/storyblok/#publishing-your-site
This is an Astro bug, not Sanity. Thanks
Solution: Use Vercel's "Deploy Hook" feature. Create a Webhook inside Sanity.IO and call the Vercel's Deploy Hook function.
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Sorry if this is the wrong repo. I figured I'd start here, but if I need to take this elsewhere I can.
Describe the bug
I am using sanity-template-astro-clean and when I publish changes in the embedded studio, hosted on Vercel, the published changes do not show up.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Published content from embedded Sanity Studio should display automatically in the Vercel-hosted website
Screenshots Here is a video of me explaining the issue. The workaround is to deploy to Vercel, and that seems to revalidate the Sanity's cache? Maybe I need to open up a ticket with them?
https://www.loom.com/share/5cb32e2508cc42d3bcd8b127ca978678?sid=29497577-c2f8-4187-9beb-2fb60315e518
Which versions of Sanity are you using?
Run
sanity versions
in the terminal and copy-paste the result here.What operating system are you using? MacOS Ventura 13.4.1
Which versions of Node.js / npm are you running?
Run
npm -v && node -v
in the terminal and copy-paste the result here.Node: v20.7.0 NPM: 10.1.0
Additional context When I run my project on localhost, I can see published changes happen in real time and reflect in the frontend instantaneously. The problem where published studio content not showing up seems to be Vercel-specific, and is resolved whenever I re-deploy Vercel.
Seems to be related to issues:
I am not using Next.Js. I can try setting
useCdn
totrue
thoughSecurity issue? No