diff options
| author | zephex-alt <[email protected]> | 2024-05-02 13:06:48 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-02 13:06:48 +0000 |
| commit | a749565bf6f3a2cff8abefea983240b9641c94ac (patch) | |
| tree | 6ff2b4e483fb6a350fb0f97453cfe680f3dfbfd6 /src | |
| parent | test (diff) | |
| download | dramalama-a749565bf6f3a2cff8abefea983240b9641c94ac.tar.xz dramalama-a749565bf6f3a2cff8abefea983240b9641c94ac.zip | |
added edge runtime line
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/anime/[id]/page.jsx | 5 | ||||
| -rw-r--r-- | src/app/kdrama/[id]/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 | 2 | ||||
| -rw-r--r-- | src/app/manga/[title]/page.jsx | 2 |
5 files changed, 12 insertions, 1 deletions
diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index 14a5974..becd886 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;
@@ -46,7 +48,8 @@ export default async function AnimeInfo({ params }) { <p className={styles.animeRelease}>
Release year:
<span>
- {" "}{info && info.releaseDate}, {info && info.status}
+ {" "}
+ {info && info.releaseDate}, {info && info.status}
</span>
</p>
</div>
diff --git a/src/app/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx index 69a42c2..f6926c2 100644 --- a/src/app/kdrama/[id]/page.jsx +++ b/src/app/kdrama/[id]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import EpisodesButtons from "./buttons";
import { PreFetchVideoLinks } from "../components/cacher";
+export const runtime = "edge";
+
export default async function DramaInfo({ params }) {
const id = decodeURIComponent(params.id);
const info = await getDramaInfo(id);
diff --git a/src/app/manga/[title]/[id]/[read]/page.jsx b/src/app/manga/[title]/[id]/[read]/page.jsx index a2b2555..dc031fd 100644 --- a/src/app/manga/[title]/[id]/[read]/page.jsx +++ b/src/app/manga/[title]/[id]/[read]/page.jsx @@ -1,6 +1,8 @@ import styles from "./read.module.css";
import Image from "next/image";
+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 5aa807d..76d7177 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);
diff --git a/src/app/manga/[title]/page.jsx b/src/app/manga/[title]/page.jsx index 05dbcbf..01350d7 100644 --- a/src/app/manga/[title]/page.jsx +++ b/src/app/manga/[title]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import Link from "next/link";
import { PreFetchMangaInfo } from "../cacher";
+export const runtime = "edge";
+
export default async function MangaInfo({ params }) {
const title = params.title;
const data = await GetSearchedAnime(title);
|