Spaces:
Runtime error
Runtime error
Update server.js
Browse files
server.js
CHANGED
|
@@ -212,9 +212,7 @@ app.get('/auth/login', (req, res) => {
|
|
| 212 |
});
|
| 213 |
|
| 214 |
async function fetchWithRetry(url, options, retries = 3) {
|
| 215 |
-
const proxyBase = process.env.DISCORD_BASE_URL ? process.env.DISCORD_BASE_URL.replace(/\/$/, '') : 'https://discord.com';
|
| 216 |
const endpoints = [
|
| 217 |
-
proxyBase,
|
| 218 |
'https://discord.com',
|
| 219 |
'https://canary.discord.com',
|
| 220 |
'https://ptb.discord.com'
|
|
|
|
| 212 |
});
|
| 213 |
|
| 214 |
async function fetchWithRetry(url, options, retries = 3) {
|
|
|
|
| 215 |
const endpoints = [
|
|
|
|
| 216 |
'https://discord.com',
|
| 217 |
'https://canary.discord.com',
|
| 218 |
'https://ptb.discord.com'
|