fix sample messup

This commit is contained in:
Lars Erhardt
2025-02-28 14:58:16 +01:00
9 changed files with 417 additions and 22 deletions

View File

@@ -52,6 +52,9 @@ interface Config {
BRAVE: {
API_KEY: string;
};
YACY: {
ENDPOINT: string;
};
};
}
@@ -91,6 +94,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;