diff options
Diffstat (limited to 'src/app/video')
| -rw-r--r-- | src/app/video/[animeId]/page.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/video/[animeId]/page.jsx b/src/app/video/[animeId]/page.jsx index cfa8cd5..c0339f7 100644 --- a/src/app/video/[animeId]/page.jsx +++ b/src/app/video/[animeId]/page.jsx @@ -48,7 +48,8 @@ export default async function Video({ params }) { async function getVideoLink(id) { const res = await fetch( - "https://consumet-api-di2e.onrender.com/anime/gogoanime/watch/" + id + "https://consumet-api-di2e.onrender.com/anime/gogoanime/watch/" + id, + { next: { revalidate: 3600 } } // Video links are revalidated after an hour ); const data = res.json(); return data; |