Skip to content

Commit cdbdcba

Browse files
committed
fix: add server-only guard to prevent token leakage for issue JhaSourav07#2017
1 parent 28f2ccf commit cdbdcba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/github.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { TTLCache } from '@/lib/cache';
66
import { LANGUAGE_COLORS } from '@/lib/svg/languageColors';
77
import { CONTRIBUTION_MILESTONES, STREAK_MILESTONES } from './svg/constants';
88

9+
import 'server-only';
10+
911
interface GitHubRepo {
1012
stargazers_count: number;
1113
language: string | null;

0 commit comments

Comments
 (0)