Skip to content

Commit

Permalink
Update <MainPage> per 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Dec 10, 2023
1 parent 59b1a86 commit 50c5d3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Home(props) {
);
}

export async function getServerSideProps() {
export async function getStaticProps() {
return {
props: {
cards: (await MainPageApi.getCards()) || [],
Expand All @@ -27,5 +27,6 @@ export async function getServerSideProps() {
articles:
(await articlesApi.getAllArticles()).map((article) => article.attributes) || [],
},
revalidate: 600,
};
}

0 comments on commit 50c5d3b

Please sign in to comment.