chore(config): centralize feature settings

This commit is contained in:
2026-08-09 21:20:19 +07:00 Unverified
parent 26c0b5af18
commit 950d3d4afe
22 changed files with 238 additions and 70 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
import "server-only";
import { getRobloxFollowerConfig } from "@/lib/config/server";
export async function getRobloxFollowerCount(): Promise<number | null> {
const userId = process.env.ROBLOX_USER_ID;
if (!userId) return null;
try {
const { userId } = getRobloxFollowerConfig();
const res = await fetch(
`https://friends.roproxy.com/v1/users/${encodeURIComponent(userId)}/friends/count`,
{ cache: "no-store", signal: AbortSignal.timeout(5000) }