fix(rg): redirect url fix
Build and Push Image / build-backend (push) Successful in 2m54s
Build and Push Image / build-frontend (push) Successful in 4m11s
Build and Push Image / push (push) Successful in 1m1s

This commit is contained in:
2026-07-25 14:17:23 +07:00 Unverified
parent cf8ab18c45
commit e3133d0cd3
+1 -1
View File
@@ -369,7 +369,7 @@ export async function getDiscordSession() {
export async function loginDiscord() {
redirect(
`https://discord.com/oauth2/authorize?client_id=${encodeURIComponent(DISCORD_CLIENT_ID)}&response_type=code&redirect_uri=${encodeURIComponent(new URL("/rubgram/callback", BASE_URL.includes("localhost") ? "https://buzz.sudloh.com" : BASE_URL).href)}&scope=identify+guilds.join+guilds`,
`https://discord.com/oauth2/authorize?client_id=${encodeURIComponent(DISCORD_CLIENT_ID)}&response_type=code&redirect_uri=${encodeURIComponent(`${BASE_URL}/rubgram/callback`)}&scope=identify+guilds.join+guilds`,
);
}