chore(config): centralize feature settings
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user