diff options
| author | real-zephex <[email protected]> | 2024-03-25 11:33:09 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-03-25 11:33:09 +0530 |
| commit | 9202a2b6790e57dc35d0563d014e89d981a65e37 (patch) | |
| tree | f2258b96400d6df9753c2c52531ba7f8897b9fa3 /src/app/video | |
| parent | fix: requests are revalidated after 30 mins. this prevents stale data from be... (diff) | |
| download | dramalama-9202a2b6790e57dc35d0563d014e89d981a65e37.tar.xz dramalama-9202a2b6790e57dc35d0563d014e89d981a65e37.zip | |
feature added: mangas are now available
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; |