Skip to content

Commit

Permalink
fix(credits): enable translate-credits (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
saa authored Sep 27, 2024
1 parent 0ed15a1 commit 9d75c60
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/pages/credits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,18 @@ import clsx from 'clsx';
import type { GetStaticProps, NextPage, InferGetStaticPropsType } from 'next';

export const getStaticProps = (async () => {
const translatorCredits: Array<{
const res = await fetch('https://translate-credits.stats.fm', {
signal: AbortSignal.timeout(60_000),
});
const translatorCredits = (await res.json()) as {
id: number;
username: string;
firstName: string | null;
lastName: string | null;
joinDate: string;
role: string;
avatarUrl: string;
}> = [];

// const res = await fetch('https://translate-credits.stats.fm', {
// signal: AbortSignal.timeout(5_000),
// });
// const translatorCredits = (await res.json()) as {
// id: number;
// username: string;
// firstName: string | null;
// lastName: string | null;
// joinDate: string;
// role: string;
// avatarUrl: string;
// }[];
}[];
const credits = [
{
name: 'Translators',
Expand Down

0 comments on commit 9d75c60

Please sign in to comment.