completionId: cgen-b2d446d78cf549c3a676d3673b91c4f0

cgen-b2d446d78cf549c3a676d3673b91c4f0
This commit is contained in:
Builder.io 2025-11-09 23:14:11 +00:00
parent 5ad7e20cf2
commit 3abe0bd531

View file

@ -12,7 +12,7 @@ export default function handler(req: any, res: any) {
return res.status(500).json({ error: "Discord client ID not configured" });
}
const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/api/discord/oauth/callback`;
const redirectUri = "https://aethex.dev/api/discord/oauth/callback";
// Get the next URL from query params (where to redirect after login)
const next = req.query.state || "/dashboard";