aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/search/components/fetchedInfo.js
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-11 02:45:11 +0530
committerreal-zephex <[email protected]>2024-04-11 02:45:11 +0530
commit6efd15397fd8ed5d3520494e2450a9b15b1cf42f (patch)
treedf63a9b5f7d11635068c94c6f01b059a1fa3e8ee /src/app/anime/search/components/fetchedInfo.js
parenttried to fix auto resizing of the video player on quality change. (diff)
downloaddramalama-6efd15397fd8ed5d3520494e2450a9b15b1cf42f.tar.xz
dramalama-6efd15397fd8ed5d3520494e2450a9b15b1cf42f.zip
tried to leverage caching of next js: trending and recent animes info are now cached along with all the animes when you search for one
Diffstat (limited to 'src/app/anime/search/components/fetchedInfo.js')
-rw-r--r--src/app/anime/search/components/fetchedInfo.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/anime/search/components/fetchedInfo.js b/src/app/anime/search/components/fetchedInfo.js
index 9a1d187..aa3ffb1 100644
--- a/src/app/anime/search/components/fetchedInfo.js
+++ b/src/app/anime/search/components/fetchedInfo.js
@@ -1,8 +1,10 @@
import styles from "../search.module.css";
import Link from "next/link";
import Image from "next/image";
+import { preFetchAnimeInfo } from "../../videoLinkfetcher";
export default async function fetchedInfo(data) {
+ preFetchAnimeInfo(data);
return (
<div className={styles.animeEntry}>
{data ? (
@@ -16,10 +18,10 @@ export default async function fetchedInfo(data) {
<div className={styles.anime}>
<p>{item.title}</p>
<Image
- src={item.image}
+ src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item.image}`}
className={styles.animeImage}
width={120}
- height={160}
+ height={180}
alt="Drama Poster"
/>
</div>