Skip to content

Commit

Permalink
feat(data-handling): implement data retrieval and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rvyk committed Dec 17, 2023
1 parent 7fed3f4 commit 076f565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 35 deletions.
35 changes: 1 addition & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/pages/zastepstwa.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const getStaticProps: GetStaticProps = async () => {
});
});

return { props: { form: { time, tables } } };
return { props: { form: { time, tables } }, revalidate: 3600 };
} catch (error) {
console.error(error);
}
Expand All @@ -131,5 +131,6 @@ export const getStaticProps: GetStaticProps = async () => {
error: true,
message: "Wystąpił błąd podczas pobierania danych",
},
revalidate: 3600,
};
};

0 comments on commit 076f565

Please sign in to comment.