diff options
| author | real-zephex <[email protected]> | 2024-03-23 13:31:41 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-03-23 13:31:41 +0530 |
| commit | 8bbec13c641b5a50e3991f3a3c762f29bc3b13f2 (patch) | |
| tree | 1dc8c5ef2989cd3030758212bfe779e3ad7fddd8 /src | |
| parent | feature: added footer which includes a status page and links to the github repo (diff) | |
| download | dramalama-8bbec13c641b5a50e3991f3a3c762f29bc3b13f2.tar.xz dramalama-8bbec13c641b5a50e3991f3a3c762f29bc3b13f2.zip | |
fix: requests are revalidated after 30 mins. this prevents stale data from being served
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/info/[id]/page.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/info/[id]/page.jsx b/src/app/info/[id]/page.jsx index 4cede90..dda7a49 100644 --- a/src/app/info/[id]/page.jsx +++ b/src/app/info/[id]/page.jsx @@ -42,7 +42,8 @@ export default async function AnimeInfo({ params }) { async function getAnimeInfo(anime_id) { const res = await fetch( - "https://anime-sensei-api.vercel.app/anime/gogoanime/info/" + anime_id + "https://anime-sensei-api.vercel.app/anime/gogoanime/info/" + anime_id, + { next: { revalidate: 1800 } } ); const data = res.json(); return data; |