Adding revalidation for dynamic routes to view new data if requested

This commit is contained in:
Frank
2023-10-04 18:16:18 -06:00
parent e5d2adc140
commit 32259af266
2 changed files with 2 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ export const getStaticProps = wrapper.getStaticProps(
props: {
page: page.data[0],
},
revalidate: 60,
};
}
);

View File

@@ -28,6 +28,7 @@ export const getStaticProps = wrapper.getStaticProps(
props: {
post: post.data[0],
},
revalidate: 60,
};
}
);