diff options
Diffstat (limited to 'src/app/anime/search/components')
| -rw-r--r-- | src/app/anime/search/components/fetchInfo.js | 2 | ||||
| -rw-r--r-- | src/app/anime/search/components/fetchedInfo.js | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/app/anime/search/components/fetchInfo.js b/src/app/anime/search/components/fetchInfo.js index 07b203d..a458607 100644 --- a/src/app/anime/search/components/fetchInfo.js +++ b/src/app/anime/search/components/fetchInfo.js @@ -6,7 +6,7 @@ export default async function Results(id) { async function testFunction(title) { const res = await fetch( - "https://consumet-api-di2e.onrender.com/anime/gogoanime/" + title, + "https://consumet-jade.vercel.app/anime/gogoanime/" + title, { cache: "force-cache" } ); const data = await res.json(); 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> |