aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-07 12:53:56 +0000
committerGitHub <[email protected]>2024-04-07 12:53:56 +0000
commit6c4f28aa4166fae78a450b3fc46b5f3f4be9fd92 (patch)
tree9ddac3f4b350d34c34cd2679c6c5c9bfb8ae4ca3 /src
parentMerge pull request #3 from real-zephex/kdrama-section-rewrite (diff)
downloaddramalama-6c4f28aa4166fae78a450b3fc46b5f3f4be9fd92.tar.xz
dramalama-6c4f28aa4166fae78a450b3fc46b5f3f4be9fd92.zip
cloudflare fix
Diffstat (limited to 'src')
-rw-r--r--src/app/anime/[id]/[...animeId]/page.jsx2
-rw-r--r--src/app/anime/[id]/page.jsx2
-rw-r--r--src/app/kdrama/[id]/page.jsx2
-rw-r--r--src/app/manga/[title]/[id]/[read]/page.jsx2
-rw-r--r--src/app/manga/[title]/[id]/page.jsx2
-rw-r--r--src/app/manga/[title]/page.jsx2
6 files changed, 12 insertions, 0 deletions
diff --git a/src/app/anime/[id]/[...animeId]/page.jsx b/src/app/anime/[id]/[...animeId]/page.jsx
index 950f618..f5505e5 100644
--- a/src/app/anime/[id]/[...animeId]/page.jsx
+++ b/src/app/anime/[id]/[...animeId]/page.jsx
@@ -9,6 +9,8 @@ import styles from "./video.module.css";
import { redirect } from "next/navigation";
import Link from "next/link";
+export const runtime = 'edge';
+
export default async function Video({ params }) {
let link;
const id = params.animeId[0];
diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx
index b99da42..598c8a7 100644
--- a/src/app/anime/[id]/page.jsx
+++ b/src/app/anime/[id]/page.jsx
@@ -2,6 +2,8 @@ import styles from "./info.module.css";
import Image from "next/image";
import Link from "next/link";
+export const runtime = 'edge';
+
export default async function AnimeInfo({ params }) {
let animeID = params.id;
diff --git a/src/app/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx
index baaf24e..6a165d2 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 eaaa94c..ce433e2 100644
--- a/src/app/manga/[title]/[id]/[read]/page.jsx
+++ b/src/app/manga/[title]/[id]/[read]/page.jsx
@@ -3,6 +3,8 @@ import Image from "next/image";
import DownloadManga from "./download";
import CurrentReading from "./currentReading";
+export const runtime = "edge";
+
export default async function Read({ params }) {
const chapterId = params.read;
const data = await getPages(chapterId);
diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx
index 1e4a26f..2d50252 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 CurrentReading from "./[read]/currentReading";
+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 7788a59..e586d09 100644
--- a/src/app/manga/[title]/page.jsx
+++ b/src/app/manga/[title]/page.jsx
@@ -2,6 +2,8 @@ import styles from "./title.module.css";
import Image from "next/image";
import Link from "next/link";
+export const runtime = 'edge';
+
export default async function MangaInfo({ params }) {
const title = params.title;
const data = await GetSearchedAnime(title);