Commit dabd75e2 by Arjun Jhukal

updated the new static generation for the exclusive game

parent 2aaad5b2
...@@ -40,17 +40,10 @@ export async function generateStaticParams() { ...@@ -40,17 +40,10 @@ export async function generateStaticParams() {
export const dynamic = 'force-static' export const dynamic = 'force-static'
export default async function UserGameDetail(props: { params: Promise<{ id: string }> }) { export default async function UserGameDetail(props: { params: Promise<{ id: string }> }) {
const { id } = await props.params; const { id } = await props.params;
const game = await getSingleGame(id); const game = await getSingleGame(id);
return <ExclusiveGameDetail game={game} /> return <ExclusiveGameDetail game={game} />;
} }
// export default async function ExclusiveGamePage({ params }: PageProps) {
// const game = await getSingleGame(params.id)
// return <ExclusiveGameDetail game={game} />
// }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment