Skip to content
Snippets Groups Projects
Commit 901ed372 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

ups

parent 551ff06a
No related branches found
No related tags found
No related merge requests found
Pipeline #34357 passed
......@@ -12,5 +12,6 @@ IGDB_IMG_BASE_URL="https://images.igdb.com/igdb/image/upload"
TWITCH_CLIENT_ID="imdb_client_id"
TWITCH_CLIENT_SECRET="imdb_auth_id"
# For Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="clerk_publishable_key"
CLERK_SECRET_KEY="clerk_secret_key"
\ No newline at end of file
......@@ -14,13 +14,4 @@ export default async function GameDetail({ params }: { params: { gameid: string
<p>{data[0].summary}</p>
</div>
)
}
// pre-renders static paths for all fetched games for faster page loads
export async function generateStaticParams() {
const games = await getGames()
return games.map((game) => ({
gameid: game.id.toString(),
}));
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment