finally removed xbox
This commit is contained in:
parent
07b9ed9b98
commit
e517c94dbf
1 changed files with 0 additions and 28 deletions
|
|
@ -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"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue