From e517c94dbf3dcc3270348318d5deaac44e25f222 Mon Sep 17 00:00:00 2001 From: anonymousratwastaken <108170934+anonymousratwastaken@users.noreply.github.com> Date: Fri, 19 Dec 2025 16:52:28 +0000 Subject: [PATCH] finally removed xbox --- src/lib/xbox-server.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/lib/xbox-server.ts diff --git a/src/lib/xbox-server.ts b/src/lib/xbox-server.ts deleted file mode 100644 index d25b039..0000000 --- a/src/lib/xbox-server.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { getXboxProfileWithAvatar } from "./xbox"; - -/** - * Server-side helper to fetch Xbox profile data using environment variables - * This function can only be called on the server side - */ -export async function getXboxProfileServer(gamertag: string): Promise<{ - gamertag: string; - avatarUrl: string; - error?: string; -}> { - try { - // Use the modified function that reads from environment variables - const result = await getXboxProfileWithAvatar(gamertag); - - return result; - - } catch (error) { - console.error("Failed to fetch Xbox profile:", error); - - // Return fallback data on error - return { - gamertag, - avatarUrl: "", - error: "Failed to fetch profile data" - }; - } -}