diff options
| author | zephex-alt <[email protected]> | 2024-05-04 18:36:23 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-04 18:36:23 +0000 |
| commit | b299ee48e235c296c98cb3fa9675f27729f4a85f (patch) | |
| tree | cb0b81bb035752307af784c9fba1b88e43d5e513 /src | |
| parent | this was the best fix that i could come up with (diff) | |
| download | dramalama-b299ee48e235c296c98cb3fa9675f27729f4a85f.tar.xz dramalama-b299ee48e235c296c98cb3fa9675f27729f4a85f.zip | |
i guess I fixed it
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/anime/[id]/page.jsx | 2 | ||||
| -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 | ||||
| -rw-r--r-- | 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; // <main className={styles.newbg}> - // <div className={styles.content}> - // <div className={styles.contentContainer}> - // <Link - // href={"/anime"} - // title="Click here to get redirected to the anime webpage" - // > - // <div className={styles.anime}> - // <h2>Anime</h2> - // <p>Your one stop for all your anime needs</p> - // </div> - // </Link> - // <Link - // href={"/manga"} - // title="Click here to get redirected to the manga webpage" - // > - // <div className={styles.manga}> - // <h2>Manga</h2> - // <p>Your one stop for all your manga needs</p> - // </div> - // </Link> - // <Link - // href={"/kdrama"} - // title="Click here to get redirected to the kdrama webpage" - // > - // <div className={styles.kdrama}> - // <h2>Kdrama</h2> - // <p>Your one stop for all your kdrama needs</p> - // </div> - // </Link> - // </div> - // </div> - // </main> + return ( + <main className={styles.newbg}> + <div className={styles.content}> + <div className={styles.contentContainer}> + <Link + href={"/anime"} + title="Click here to get redirected to the anime webpage" + > + <div className={styles.anime}> + <h2>Anime</h2> + <p>Your one stop for all your anime needs</p> + </div> + </Link> + <Link + href={"/manga"} + title="Click here to get redirected to the manga webpage" + > + <div className={styles.manga}> + <h2>Manga</h2> + <p>Your one stop for all your manga needs</p> + </div> + </Link> + <Link + href={"/kdrama"} + title="Click here to get redirected to the kdrama webpage" + > + <div className={styles.kdrama}> + <h2>Kdrama</h2> + <p>Your one stop for all your kdrama needs</p> + </div> + </Link> + </div> + </div> + </main> + ); } // Test push |