+
{[...Array(12)].map((_, i) => (
))}
diff --git a/src/lib/api/client.ts b/src/lib/api/client.ts
index fb40d46c..4e34cf6e 100644
--- a/src/lib/api/client.ts
+++ b/src/lib/api/client.ts
@@ -8,13 +8,21 @@ import {
} from "../types";
export async function getGames(): Promise<{ response: GamesRoute }> {
- const response = await fetch("https://api.wanderer.moe/games");
+ const response = await fetch("https://api.wanderer.moe/games", {
+ next: {
+ revalidate: 1800,
+ },
+ });
const data = await response.json();
return { response: data };
}
export async function getGame(game: string): Promise<{ response: GameRoute }> {
- const response = await fetch(`https://api.wanderer.moe/game/${game}`);
+ const response = await fetch(`https://api.wanderer.moe/game/${game}`, {
+ next: {
+ revalidate: 1800,
+ },
+ });
const data = await response.json();
return { response: data };
}
@@ -25,6 +33,11 @@ export async function getGameCategory(
): Promise<{ response: CategoryRoute }> {
const response = await fetch(
`https://api.wanderer.moe/game/${game}/${category}`,
+ {
+ next: {
+ revalidate: 1800,
+ },
+ },
);
const data = await response.json();
return { response: data };
@@ -35,6 +48,11 @@ export async function getContributors(): Promise<{
}> {
const response = await fetch(
"https://api.wanderer.moe/discord/contributors",
+ {
+ next: {
+ revalidate: 1800,
+ },
+ },
);
const data = await response.json();
return { response: data };
@@ -55,7 +73,11 @@ export async function getDiscordUsers(): Promise<{
export async function getChangeLog(): Promise<{
response: ChangeLogRoute;
}> {
- const response = await fetch("https://api.wanderer.moe/discord/changelog");
+ const response = await fetch("https://api.wanderer.moe/discord/changelog", {
+ next: {
+ revalidate: 1800,
+ },
+ });
const data = await response.json();
return { response: data };
}