This commit is contained in:
HadiCherkaoui
2025-02-28 14:46:24 +01:00
parent ca86a7e358
commit af4b97b766
7 changed files with 134 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ interface Config {
BRAVE: {
API_KEY: string;
};
YACY: {
ENDPOINT: string;
};
};
}
@@ -84,6 +87,8 @@ export const getBraveApiKey = () => loadConfig().SEARCH_ENGINES.BRAVE.API_KEY;
export const getBingSubscriptionKey = () => loadConfig().SEARCH_ENGINES.BING.SUBSCRIPTION_KEY;
export const getYacyJsonEndpoint = () => loadConfig().SEARCH_ENGINES.YACY.ENDPOINT;
export const getSearxngApiEndpoint = () =>
process.env.SEARXNG_API_URL || loadConfig().SEARCH_ENGINES.SEARXNG.ENDPOINT;