feat: add Redis caching for follower counts, implement fetch timeouts, enable Nginx gzip compression, and refactor icon management.

This commit is contained in:
2026-06-29 21:58:13 +07:00 Unverified
parent d0ce59b209
commit 14abb54108
10 changed files with 108 additions and 32 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export async function getRobloxFollowerCount(): Promise<number | null> {
try {
const res = await fetch(
`https://friends.roblox.com/v1/users/${encodeURIComponent(userId)}/followers/count`,
{ next: { revalidate: 3600 } }
{ next: { revalidate: 3600 }, signal: AbortSignal.timeout(5000) }
);
if (!res.ok) return null;