From d58f467603ecdee8e610906b924ea01c20d4a538 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 9 Nov 2025 08:18:35 +0000 Subject: [PATCH] Revert callback endpoint to use /api/discord/oauth/callback cgen-9ec96030d9144aecb3592d45cbe41996 --- api/discord/oauth/callback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(