Adding revalidation for dynamic routes to view new data if requested
This commit is contained in:
@@ -27,6 +27,7 @@ export const getStaticProps = wrapper.getStaticProps(
|
||||
props: {
|
||||
page: page.data[0],
|
||||
},
|
||||
revalidate: 60,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
@@ -28,6 +28,7 @@ export const getStaticProps = wrapper.getStaticProps(
|
||||
props: {
|
||||
post: post.data[0],
|
||||
},
|
||||
revalidate: 60,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user