From af951fc7429afd21477bbd6c030da57daf2143b2 Mon Sep 17 00:00:00 2001 From: zephex-alt <166333351+zephex-alt@users.noreply.github.com> Date: Sat, 4 May 2024 18:34:31 +0000 Subject: [PATCH 1/2] this was the best fix that i could come up with --- src/app/page.jsx | 73 +++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/src/app/page.jsx b/src/app/page.jsx index d154ccd..a850164 100644 --- a/src/app/page.jsx +++ b/src/app/page.jsx @@ -1,42 +1,45 @@ +"use client"; + import styles from "./page.module.css"; import Link from "next/link"; +import { useRouter } from "next/navigation"; export default function Home() { - return ( -
-
-
- -
-

Anime

-

Your one stop for all your anime needs

-
- - -
-

Manga

-

Your one stop for all your manga needs

-
- - -
-

Kdrama

-

Your one stop for all your kdrama needs

-
- -
-
-
- ); + const router = useRouter(); + router.push("https://dramalama.netlify.app"); + return; //
+ //
+ //
+ // + //
+ //

Anime

+ //

Your one stop for all your anime needs

+ //
+ // + // + //
+ //

Manga

+ //

Your one stop for all your manga needs

+ //
+ // + // + //
+ //

Kdrama

+ //

Your one stop for all your kdrama needs

+ //
+ // + //
+ //
+ //
} // Test push From b299ee48e235c296c98cb3fa9675f27729f4a85f Mon Sep 17 00:00:00 2001 From: zephex-alt <166333351+zephex-alt@users.noreply.github.com> Date: Sat, 4 May 2024 18:36:23 +0000 Subject: [PATCH 2/2] i guess I fixed it --- src/app/anime/[id]/page.jsx | 2 - src/app/kdrama/[id]/page.jsx | 2 - src/app/manga/[title]/[id]/[read]/page.jsx | 2 - src/app/manga/[title]/[id]/page.jsx | 2 - src/app/manga/[title]/page.jsx | 2 - src/app/page.jsx | 73 +++++++++++----------- 6 files changed, 35 insertions(+), 48 deletions(-) diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index becd886..d133118 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -3,8 +3,6 @@ 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/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx index 38593e7..9cb3cd8 100644 --- a/src/app/kdrama/[id]/page.jsx +++ b/src/app/kdrama/[id]/page.jsx @@ -3,8 +3,6 @@ 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 dc031fd..a2b2555 100644 --- a/src/app/manga/[title]/[id]/[read]/page.jsx +++ b/src/app/manga/[title]/[id]/[read]/page.jsx @@ -1,8 +1,6 @@ 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 9d60e0a..37fb3e5 100644 --- a/src/app/manga/[title]/[id]/page.jsx +++ b/src/app/manga/[title]/[id]/page.jsx @@ -5,8 +5,6 @@ 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 2e3e4de..689042b 100644 --- a/src/app/manga/[title]/page.jsx +++ b/src/app/manga/[title]/page.jsx @@ -3,8 +3,6 @@ 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); diff --git a/src/app/page.jsx b/src/app/page.jsx index a850164..d154ccd 100644 --- a/src/app/page.jsx +++ b/src/app/page.jsx @@ -1,45 +1,42 @@ -"use client"; - import styles from "./page.module.css"; import Link from "next/link"; -import { useRouter } from "next/navigation"; export default function Home() { - const router = useRouter(); - router.push("https://dramalama.netlify.app"); - return; //
- //
- //
- // - //
- //

Anime

- //

Your one stop for all your anime needs

- //
- // - // - //
- //

Manga

- //

Your one stop for all your manga needs

- //
- // - // - //
- //

Kdrama

- //

Your one stop for all your kdrama needs

- //
- // - //
- //
- //
+ return ( +
+
+
+ +
+

Anime

+

Your one stop for all your anime needs

+
+ + +
+

Manga

+

Your one stop for all your manga needs

+
+ + +
+

Kdrama

+

Your one stop for all your kdrama needs

+
+ +
+
+
+ ); } // Test push