Revert callback endpoint to use /api/discord/oauth/callback

cgen-9ec96030d9144aecb3592d45cbe41996
This commit is contained in:
Builder.io 2025-11-09 08:18:35 +00:00
parent feefdafc8c
commit d58f467603

View file

@ -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(