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

Missing how to trigger revalidation with Vercel #10814

Open
rauluranga opened this issue Jan 28, 2025 · 0 comments
Open

Missing how to trigger revalidation with Vercel #10814

rauluranga opened this issue Jan 28, 2025 · 0 comments

Comments

@rauluranga
Copy link

📚 Subject area/topic

ISR cache invalidation

📋 Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/guides/integrations-guide/vercel/#isr

📋 Description of content that is out-of-date or incorrect

The ISR cache invalidation docs are missing an essential part to make it work,
the final piece is to make a call with the appropriate request headers,
it should include at the end of the docs something like the following:

Now, you can trigger revalidation by sending a GET or HEAD request to the page's URL with the x-prerender-revalidate header:

curl -H "x-prerender-revalidate: <YOUR_BYPASS_TOKEN>" https://your-site.com/posts/my-article-slug

This will tell Vercel to revalidate the /posts/my-article-slug page, ensuring the next visitor sees the fresh content. You can trigger this request from a webhook in your CMS or any other part of your application.

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

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

1 participant