You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm guessing (haven't validated that this is correct) that getBlogPostBySlug throws when not found (which fails the revalidate) and !blogPost condition never hits to return the 404
The text was updated successfully, but these errors were encountered:
Happened with blog post, probably happens with events too
Can find webhook logs for this on Sanity dashboard under API tab
HTTP 500 with message "Error revalidating"
Unpublish 'works' in the sense that it'll no longer appear on the homepage or blog page, but the blog post page is still accessible directly via URL
Pretty sure this happens because:
getStaticProps
is called which tries to load the blog post by slugCurrently have this code in
getStaticProps
:I'm guessing (haven't validated that this is correct) that
getBlogPostBySlug
throws when not found (which fails the revalidate) and!blogPost
condition never hits to return the 404The text was updated successfully, but these errors were encountered: