diff options
| author | real-zephex <[email protected]> | 2024-04-26 23:57:32 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-04-26 23:57:32 +0530 |
| commit | 4c74f9e66c6765f771f816ae64adaa2da66ed013 (patch) | |
| tree | 653122ca698b5a2e99e6d8839c5bd2c976d652b2 | |
| parent | minor ui fix (diff) | |
| download | dramalama-4c74f9e66c6765f771f816ae64adaa2da66ed013.tar.xz dramalama-4c74f9e66c6765f771f816ae64adaa2da66ed013.zip | |
trying to implement edge runtime
| -rw-r--r-- | src/app/anime/[id]/page.jsx | 2 | ||||
| -rw-r--r-- | src/app/anime/recent/page.jsx | 2 | ||||
| -rw-r--r-- | src/app/anime/top-airing/page.jsx | 2 | ||||
| -rw-r--r-- | src/app/manga/[title]/[id]/[read]/page.jsx | 2 | ||||
| -rw-r--r-- | src/app/manga/[title]/[id]/page.jsx | 4 | ||||
| -rw-r--r-- | src/app/manga/[title]/page.jsx | 2 |
6 files changed, 12 insertions, 2 deletions
diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index bb7640f..664d638 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import Button from "./buttons";
import { preFetchAnimeLinks } from "../videoLinkfetcher";
+export const runtime = "edge";
+
export default async function AnimeInfo({ params }) {
let animeID = params.id;
diff --git a/src/app/anime/recent/page.jsx b/src/app/anime/recent/page.jsx index 25b0182..69f2a81 100644 --- a/src/app/anime/recent/page.jsx +++ b/src/app/anime/recent/page.jsx @@ -3,6 +3,8 @@ import Link from "next/link"; import styles from "./recent.module.css";
import { preFetchAnimeInfo } from "../videoLinkfetcher";
+export const runtime = "edge";
+
export default async function Releases() {
const data = await fetchRecentEpisodes();
preFetchAnimeInfo(data);
diff --git a/src/app/anime/top-airing/page.jsx b/src/app/anime/top-airing/page.jsx index e406860..2f6232f 100644 --- a/src/app/anime/top-airing/page.jsx +++ b/src/app/anime/top-airing/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import Link from "next/link";
import { preFetchAnimeInfo } from "../videoLinkfetcher";
+export const runtime = "edge";
+
export default async function Trending() {
const data = await test();
preFetchAnimeInfo(data);
diff --git a/src/app/manga/[title]/[id]/[read]/page.jsx b/src/app/manga/[title]/[id]/[read]/page.jsx index 01080bf..f1e777d 100644 --- a/src/app/manga/[title]/[id]/[read]/page.jsx +++ b/src/app/manga/[title]/[id]/[read]/page.jsx @@ -2,6 +2,8 @@ import styles from "./read.module.css"; import Image from "next/image";
import DownloadManga from "./download";
+export const runtime = "edge";
+
export default async function Read({ params }) {
const chapterId = params.read;
const results = await getPages(chapterId);
diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx index ffd962d..2c1fcc8 100644 --- a/src/app/manga/[title]/[id]/page.jsx +++ b/src/app/manga/[title]/[id]/page.jsx @@ -5,6 +5,8 @@ import { redirect } from "next/navigation"; import { FaStar } from "react-icons/fa";
import { PreFetchChaterLinks } from "../../cacher";
+export const runtime = 'edge';
+
export default async function MangaInfo({ params }) {
const id = params.id;
const data = await getMangaInfo(id);
@@ -129,7 +131,7 @@ export default async function MangaInfo({ params }) { async function getMangaInfo(id) {
const res = await fetch(
`https://consumet-jade.vercel.app/meta/anilist-manga/info/${id}?provider=mangadex`,
- { next: { revalidate: 86400 } }
+ { next: { revalidate: 21600 } }
);
const data = await res.json();
return data;
diff --git a/src/app/manga/[title]/page.jsx b/src/app/manga/[title]/page.jsx index 4446d05..fd406ac 100644 --- a/src/app/manga/[title]/page.jsx +++ b/src/app/manga/[title]/page.jsx @@ -3,7 +3,7 @@ import Image from "next/image"; import Link from "next/link";
import { PreFetchMangaInfo } from "../cacher";
-// This page displays all the available mangas or manhwas when the user searches for one/
+export const runtime = 'edge';
export default async function MangaInfo({ params }) {
const title = params.title;
|