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
If getStaticProps returns notFound: true in the initial build with a revalidate value, Nextjs never tries to rebuild the page
Expected Behavior
Nextjs should try rebuilding the page instead of assuming permanent 404
To Reproduce
exportconstgetStaticProps=async(props)=>{try{constdictionaries=awaitapiFetch();return{props: {
dictionaries,},revalidate: 60,};}catch(error){// assume the api fetch fails with the initial buildreturn{notFound: true,props: {dictionaries: {},},revalidate: 60,};}// On subsequent re-builds after revalidate has passed and the api returns a ok response, Nextjs never tries to rebuild the page and always returns the 404 page instead
rBortnikas, ksh-ns, bscaspar, alejandro, danielmeyer-cn and 17 more