fix(rg): tmp workaround for faulty BASE_URL
Build and Push Image / build-backend (push) Successful in 4m11s
Build and Push Image / build-frontend (push) Successful in 5m15s
Build and Push Image / push (push) Successful in 1m6s

needs more investigation
This commit is contained in:
2026-07-25 12:02:11 +07:00 Unverified
parent ff09642d35
commit cf8ab18c45
+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).href)}&scope=identify+guilds.join+guilds`,
`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`,
);
}