-
Notifications
You must be signed in to change notification settings - Fork 0
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
Revalidation broken for Custom Post Types #82
Comments
Can you add more info, where it was deployed (Vercel, Netlify, etc), and what version of Next.js? |
Both sites I've tired this on were hosted on Vercel, I also tried adding to Netlify with Next.js Runtime v5 active and still didn't work (I didn't test this as thorough though so I may need to do it again) Tested on Next v 14.1.4 I noticed there was a new version 14.2.0 today so I'll test that out |
Any update on that? |
Oddly enough I can't even get it working for posts anymore even now that I'm trying it out a new site. I've updated on-demand revalidation to latest version instead of 1.1.3. I'm a bit stumped tbh. I added this to the page.tsx: But definitely not ideal... It honestly seems like it's the vercel caching that is causing the issue. I'm gunna give Netlify another college try and see if I can make some magic happen |
Seems to be fixed in next version 14.3.0-canary.42 for posts specifically Doesn't seem to be working for custom post types still |
Just for posts or also pages? |
Works for "Pages" and "Posts" but when I update a custom post type like "Projects" for example it will do the first revalidate (sometimes) and then when I change it back it doesn't revert the change and no longer revalidates anymore
The text was updated successfully, but these errors were encountered: