How can i revalidate after every 30 days?
Answered
<Milind ツ /> posted this in #help-forum
So can we achieve this by using the following revalidate value:
const res = await fetch(url, {
next: {
revalidate: 60 * 60 * 24 * 30,
},
});Answered by B33fb0n3
Sometimes calculations are not accepted for time based revalidation. To be save use this number instead: 2592000 (30 days in seconds).
4 Replies
@<Milind ツ /> So can we achieve this by using the following revalidate value:
ts
const res = await fetch(url, {
next: {
revalidate: 60 * 60 * 24 * 30,
},
});
Sometimes calculations are not accepted for time based revalidation. To be save use this number instead: 2592000 (30 days in seconds).
Answer
ah
gotcha