Skip to content

Commit

Permalink
Production Release
Browse files Browse the repository at this point in the history
Production Release
  • Loading branch information
tcheee authored Dec 5, 2024
2 parents fc4a39b + c46d87f commit 94845a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/[lng]/quests/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@

import { getQuestBySlug } from '../../../lib/getQuestBySlug';
import QuestPage from '../../../ui/quests/QuestMissionPage';
import { notFound } from 'next/navigation';

export default async function Page({ params }: { params: { slug: string } }) {
const { data, url } = await getQuestBySlug(params.slug);

if (!data?.data?.[0]) {
return notFound();
}

return <QuestPage quest={data?.data?.[0]} url={url} />;
}
5 changes: 5 additions & 0 deletions src/app/[lng]/superfest/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getQuestBySlug } from 'src/app/lib/getQuestBySlug';
import SuperfestPage from 'src/app/ui/superfest/SuperfestMissionPage';
import { notFound } from 'next/navigation';

// export async function generateMetadata({
// params,
Expand Down Expand Up @@ -44,5 +45,9 @@ import SuperfestPage from 'src/app/ui/superfest/SuperfestMissionPage';
export default async function Page({ params }: { params: { slug: string } }) {
const { data, url } = await getQuestBySlug(params.slug);

if (!data?.data?.[0]) {
return notFound();
}

return <SuperfestPage quest={data?.data?.[0]} url={url} />;
}

1 comment on commit 94845a8

@vercel
Copy link

@vercel vercel bot commented on 94845a8 Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.