small fixes
This commit is contained in:
parent
875296922e
commit
9413d6588d
4 changed files with 24 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue