Skip to content

Commit

Permalink
add: 404 page instead of server error on anime not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaBhattacharjee committed Apr 10, 2024
1 parent 4b75049 commit 50cf49c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/details/[animeId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { Suspense } from "react";
import { Play, Star } from "lucide-react";
import { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";

import AddToBookmark from "@/components/buttons/AddToBookmark";
import ServerError from "@/components/error/ServerError";
Expand All @@ -15,7 +16,6 @@ import EpisodeLists from "@/components/shared/cards/EpisodeLists";
import RelationCard from "@/components/shared/cards/RelationCard";
import { RecommendedAnime } from "@/components/shared/RecommendedAnime";
import { getAnimeDetails } from "@/lib/AnimeFetch";
import { notFound } from "next/navigation";

type Props = {
params: { animeId: number };
Expand Down
2 changes: 1 addition & 1 deletion src/app/watch/[streamid]/[animeid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { Suspense } from "react";
import { Download, Flag } from "lucide-react";
import { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";

import AddToBookmark from "@/components/buttons/AddToBookmark";
import Share from "@/components/buttons/Share";
Expand All @@ -18,7 +19,6 @@ import RelationCard from "@/components/shared/cards/RelationCard";
import { RecommendedAnime } from "@/components/shared/RecommendedAnime";
import AddToHistory from "@/lib/addToHistory";
import { getAnimeDetails, getDownloadLink, getSteamingLink } from "@/lib/AnimeFetch";
import { notFound } from "next/navigation";

type Props = {
params: {
Expand Down

0 comments on commit 50cf49c

Please sign in to comment.