File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ export const getStaticProps = (async () => {
15
15
avatarUrl : string ;
16
16
} > = [ ] ;
17
17
18
- // const res = await fetch('https://translate-credits.stats.fm', {
19
- // signal: AbortSignal.timeout(5_000),
20
- // });
21
- // const translatorCredits = (await res.json()) as {
22
- // id: number;
23
- // username: string;
24
- // firstName: string | null;
25
- // lastName: string | null;
26
- // joinDate: string;
27
- // role: string;
28
- // avatarUrl: string;
29
- // }[];
18
+ const res = await fetch ( 'https://translate-credits.stats.fm' , {
19
+ signal : AbortSignal . timeout ( 5_000 ) ,
20
+ } ) ;
21
+ const translatorCredits = ( await res . json ( ) ) as {
22
+ id : number ;
23
+ username : string ;
24
+ firstName : string | null ;
25
+ lastName : string | null ;
26
+ joinDate : string ;
27
+ role : string ;
28
+ avatarUrl : string ;
29
+ } [ ] ;
30
30
const credits = [
31
31
{
32
32
name : 'Translators' ,
You can’t perform that action at this time.
0 commit comments