Problem with revalidate
Unanswered
moi posted this in #help-forum
moiOP
Hello, I would like to revalidate my api call because I use the instagram api to retrieve images from an insta account (mine) however there is an expiration date on the instagram response (hence the revalidation to have a valid response each time). Here is my code but I do not understand why it does not work. There is no revalidation.
thank you in advance for your help
thank you in advance for your help
10 Replies
Silver Marten
Hello @moi
How are you ?
You can use the export const approach.
This will revalidate the data every 7 days (604800 seconds)
@Silver Marten How are you ?
moiOP
fine and you
@Silver Marten This will revalidate the data every 7 days (604800 seconds)
moiOP
yes at the begin i use that but not working 😦
oh wait, I do use export const in app/api/intagramFetcher.ts or in app/page.tsx ?
Silver Marten
Sorry for the late reply.
Yes.
I use it.