From aeec219e843ad1d5b50378dd5817323c3ab4c324 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 10 Apr 2025 18:49:09 +1000 Subject: config: limit news param types Limit countries, categories and languages to specific literals --- src/config/defaults.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/defaults.ts') diff --git a/src/config/defaults.ts b/src/config/defaults.ts index 70a4700..b365a26 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -169,8 +169,8 @@ export default { countries: ["current"], // A list of country codes or "current" for the current location categories: [] as string[], // A list of news categories to filter by languages: ["en"], // A list of languages codes to filter by - domains: [] as string[], // A list of news domains to pull from - timezone: "", // A timezone to filter by, e.g. "America/New_York" + domains: [] as string[], // A list of news domains to pull from, see https://newsdata.io/news-sources for available domains + timezone: "", // A timezone to filter by, e.g. "America/New_York", see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones pages: 3, // Number of pages to pull (each page is 10 articles) }, }; -- cgit v1.2.3-freya