small fixes

This commit is contained in:
Boki 2025-06-19 23:57:20 -04:00
parent 875296922e
commit 9413d6588d
4 changed files with 24 additions and 3 deletions

View file

@ -95,6 +95,7 @@ export const webShareProvider = {
async function fetchProxiesFromWebShare(): Promise<string[] | null> {
try {
// Try environment variables first, then fall back to config
const apiKey = process.env.WEBSHARE_API_KEY;
const apiUrl = process.env.WEBSHARE_API_URL;
@ -102,6 +103,8 @@ async function fetchProxiesFromWebShare(): Promise<string[] | null> {
logger.error('Missing WebShare configuration', {
hasApiKey: !!apiKey,
hasApiUrl: !!apiUrl,
envApiKey: process.env.WEBSHARE_API_KEY?.substring(0, 10) + '...',
envApiUrl: process.env.WEBSHARE_API_URL,
});
return null;
}