On my website, I have [articleKey].tsx
page, where I download current articles from the backend and show them on the screen.
export async function getStaticProps({locale, req, res}) {
const articles = await requestArticles({lang: locale})
generateRssFeedFiles(articles, locale)
return {
props: {articles},
revalidate: 5 * 60
}
}
I expect it to get current data every 5 minutes. It is important because those articles change over time. But I observe that sometimes I a change is not applied for more than a day until I manually redeploy the application. So it seems, this it not refreshing every 5 minutes. How to make it better? I don't want to use getServerSideProps
to not make users wait, but at the same time I need this page to have fresh data.