aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-26 23:57:32 +0530
committerreal-zephex <[email protected]>2024-04-26 23:57:32 +0530
commit4c74f9e66c6765f771f816ae64adaa2da66ed013 (patch)
tree653122ca698b5a2e99e6d8839c5bd2c976d652b2 /src/app/anime
parentminor ui fix (diff)
downloaddramalama-4c74f9e66c6765f771f816ae64adaa2da66ed013.tar.xz
dramalama-4c74f9e66c6765f771f816ae64adaa2da66ed013.zip
trying to implement edge runtime
Diffstat (limited to 'src/app/anime')
-rw-r--r--src/app/anime/[id]/page.jsx2
-rw-r--r--src/app/anime/recent/page.jsx2
-rw-r--r--src/app/anime/top-airing/page.jsx2
3 files changed, 6 insertions, 0 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);