diff --git a/api/discord/oauth/callback.ts b/api/discord/oauth/callback.ts index fa6f0f1b..25cdb56d 100644 --- a/api/discord/oauth/callback.ts +++ b/api/discord/oauth/callback.ts @@ -41,7 +41,7 @@ export default async function handler(req: any, res: any) { } try { - const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/discord`; + const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/api/discord/oauth/callback`; // Exchange code for access token const tokenResponse = await fetch(