Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion api/_rss-allowed-domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,5 +323,8 @@ export default [
"rss.libsyn.com",
"feeds.megaphone.fm",
"rss.art19.com",
"idp.nature.com"
"idp.nature.com",
"www.tanea.gr",
"www.liberal.gr",
"www.cnn.gr",
];
5 changes: 4 additions & 1 deletion scripts/shared/rss-allowed-domains.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,8 @@
"rss.libsyn.com",
"feeds.megaphone.fm",
"rss.art19.com",
"idp.nature.com"
"idp.nature.com",
"www.tanea.gr",
"www.liberal.gr",
"www.cnn.gr"
]
21 changes: 13 additions & 8 deletions scripts/shared/source-tiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"The National": 2,
"Yonhap News": 2,
"Chosun Ilbo": 2,
"El País": 2,
"El Pa\u00eds": 2,
"El Mundo": 2,
"BBC Mundo": 2,
"Brasil Paralelo": 2,
Expand All @@ -71,7 +71,7 @@
"HVG": 2,
"444.hu": 2,
"24.hu": 2,
"Híradó": 2,
"H\u00edrad\u00f3": 2,
"Portfolio.hu": 2,
"ATV": 2,
"BBC Russian": 2,
Expand All @@ -86,7 +86,7 @@
"Nikkei Tech": 2,
"NHK World": 2,
"Nikkei Asia": 2,
"Kathimerini": 2,
"Kathimerini": 1,
"Naftemporiki": 2,
"Premium Times": 2,
"Vanguard Nigeria": 2,
Expand Down Expand Up @@ -217,7 +217,7 @@
"Entrackr (India)": 3,
"India Tech News": 3,
"Taiwan Tech News": 3,
"La Silla Vacía": 3,
"La Silla Vac\u00eda": 3,
"LATAM Tech News": 3,
"Startups.co (LATAM)": 3,
"Contxto (LATAM)": 3,
Expand All @@ -227,9 +227,9 @@
"Wamda (MENA)": 3,
"Magnitt": 3,
"Daily Trust": 3,
"in.gr": 3,
"iefimerida": 3,
"Proto Thema": 3,
"in.gr": 2,
"iefimerida": 2,
"Proto Thema": 2,
"This Week in Startups": 3,
"Lex Fridman Tech": 3,
"The Vergecast": 3,
Expand Down Expand Up @@ -262,5 +262,10 @@
"ArXiv AI": 4,
"AI News": 4,
"Layoffs News": 4,
"GloNewswire (Taiwan)": 4
"GloNewswire (Taiwan)": 4,
"ERT": 1,
"AMNA": 1,
"Ta Nea": 2,
"Liberal GR": 2,
"CNN Greece": 2
}
11 changes: 11 additions & 0 deletions server/worldmonitor/news/v1/_feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ export const VARIANT_FEEDS: Record<string, Record<string, ServerFeed[]>> = {
{ name: 'Híradó', url: gnLocale('site:hirado.hu when:2d', 'hu', 'HU', 'HU:hu'), lang: 'hu' },
{ name: 'Portfolio.hu', url: 'https://portfolio.hu/rss/all.xml', lang: 'hu' },
{ name: 'ATV', url: 'https://www.atv.hu/rss', lang: 'hu' },
// Greek (EL) additions
{ name: 'Kathimerini', url: gnLocale('site:kathimerini.gr when:2d', 'el', 'GR', 'GR:el'), lang: 'el' },
{ name: 'Naftemporiki', url: 'https://www.naftemporiki.gr/feed/', lang: 'el' },
{ name: 'in.gr', url: 'https://www.in.gr/feed/', lang: 'el' },
{ name: 'iefimerida', url: 'https://www.iefimerida.gr/rss.xml', lang: 'el' },
{ name: 'Proto Thema', url: gnLocale('site:protothema.gr when:2d', 'el', 'GR', 'GR:el'), lang: 'el' },
{ name: 'ERT', url: gnLocale('site:ert.gr when:2d', 'el', 'GR', 'GR:el'), lang: 'el' },
{ name: 'AMNA', url: gnLocale('site:amna.gr when:2d', 'el', 'GR', 'GR:el'), lang: 'el' },
{ name: 'Ta Nea', url: 'https://www.tanea.gr/feed/', lang: 'el' },
{ name: 'Liberal GR', url: 'https://www.liberal.gr/feed', lang: 'el' },
{ name: 'CNN Greece', url: 'https://www.cnn.gr/feed', lang: 'el' },
],
middleeast: [
{ name: 'BBC Middle East', url: 'https://feeds.bbci.co.uk/news/world/middle_east/rss.xml' },
Expand Down
5 changes: 4 additions & 1 deletion shared/rss-allowed-domains.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,8 @@
"rss.libsyn.com",
"feeds.megaphone.fm",
"rss.art19.com",
"idp.nature.com"
"idp.nature.com",
"www.tanea.gr",
"www.liberal.gr",
"www.cnn.gr"
]
21 changes: 13 additions & 8 deletions shared/source-tiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"The National": 2,
"Yonhap News": 2,
"Chosun Ilbo": 2,
"El País": 2,
"El Pa\u00eds": 2,
"El Mundo": 2,
"BBC Mundo": 2,
"Brasil Paralelo": 2,
Expand All @@ -71,7 +71,7 @@
"HVG": 2,
"444.hu": 2,
"24.hu": 2,
"Híradó": 2,
"H\u00edrad\u00f3": 2,
"Portfolio.hu": 2,
"ATV": 2,
"BBC Russian": 2,
Expand All @@ -86,7 +86,7 @@
"Nikkei Tech": 2,
"NHK World": 2,
"Nikkei Asia": 2,
"Kathimerini": 2,
"Kathimerini": 1,
"Naftemporiki": 2,
"Premium Times": 2,
"Vanguard Nigeria": 2,
Expand Down Expand Up @@ -217,7 +217,7 @@
"Entrackr (India)": 3,
"India Tech News": 3,
"Taiwan Tech News": 3,
"La Silla Vacía": 3,
"La Silla Vac\u00eda": 3,
"LATAM Tech News": 3,
"Startups.co (LATAM)": 3,
"Contxto (LATAM)": 3,
Expand All @@ -227,9 +227,9 @@
"Wamda (MENA)": 3,
"Magnitt": 3,
"Daily Trust": 3,
"in.gr": 3,
"iefimerida": 3,
"Proto Thema": 3,
"in.gr": 2,
"iefimerida": 2,
"Proto Thema": 2,
"This Week in Startups": 3,
"Lex Fridman Tech": 3,
"The Vergecast": 3,
Expand Down Expand Up @@ -262,5 +262,10 @@
"ArXiv AI": 4,
"AI News": 4,
"Layoffs News": 4,
"GloNewswire (Taiwan)": 4
"GloNewswire (Taiwan)": 4,
"ERT": 1,
"AMNA": 1,
"Ta Nea": 2,
"Liberal GR": 2,
"CNN Greece": 2
}
6 changes: 6 additions & 0 deletions src/config/feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ const FULL_FEEDS: Record<string, Feed[]> = {
{ name: 'in.gr', url: rss('https://www.in.gr/feed/'), lang: 'el' },
{ name: 'iefimerida', url: rss('https://www.iefimerida.gr/rss.xml'), lang: 'el' },
{ name: 'Proto Thema', url: rss('https://news.google.com/rss/search?q=site:protothema.gr+when:2d&hl=el&gl=GR&ceid=GR:el'), lang: 'el' },
// Greek (EL) additions
{ name: 'ERT', url: rss('https://news.google.com/rss/search?q=site:ert.gr+when:2d&hl=el&gl=GR&ceid=GR:el'), lang: 'el' },
{ name: 'AMNA', url: rss('https://news.google.com/rss/search?q=site:amna.gr+when:2d&hl=el&gl=GR&ceid=GR:el'), lang: 'el' },
{ name: 'Ta Nea', url: rss('https://www.tanea.gr/feed/'), lang: 'el' },
{ name: 'Liberal GR', url: rss('https://www.liberal.gr/feed'), lang: 'el' },
{ name: 'CNN Greece', url: rss('https://www.cnn.gr/feed'), lang: 'el' },
// Russia & Ukraine (independent sources)
{ name: 'BBC Russian', url: rss('https://feeds.bbci.co.uk/russian/rss.xml'), lang: 'ru' },
{ name: 'Meduza', url: rss('https://meduza.io/rss/all'), lang: 'ru' },
Expand Down
8 changes: 7 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import { VARIANT_META, type VariantMeta } from './src/config/variant-meta';


const brotliCompressAsync = promisify(brotliCompress);
const BROTLI_EXTENSIONS = new Set(['.js', '.mjs', '.css', '.html', '.svg', '.json', '.txt', '.xml', '.wasm']);
const BROTLI_EXTENSIONS = new Set(['.js', '.mjs', '.css', '.html', '.svg', '.json', '.txt', '.xml', '.wasm' 'www.naftemporiki.gr',
'www.in.gr',
'www.iefimerida.gr',
]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Syntax error: domains injected into wrong Set, missing comma

Three domain strings (www.naftemporiki.gr, www.in.gr, www.iefimerida.gr) were accidentally placed inside BROTLI_EXTENSIONS — a Set of file extensions used for brotli compression — instead of RSS_PROXY_ALLOWED_DOMAINS. Additionally, there is no comma between '.wasm' and 'www.naftemporiki.gr', which is a TypeScript syntax error that will prevent the build from compiling entirely. These domains were intended for RSS_PROXY_ALLOWED_DOMAINS (around line 580), where www.tanea.gr, www.liberal.gr, and www.cnn.gr were correctly added. The fix is to remove these three strings from BROTLI_EXTENSIONS and add them to RSS_PROXY_ALLOWED_DOMAINS instead.


// Single source of truth for chunk names that must NOT be hoisted into the
// entry HTML's modulepreload list. Used by both `manualChunks` (return values
Expand Down Expand Up @@ -577,6 +580,9 @@ const RSS_PROXY_ALLOWED_DOMAINS = new Set([
'abcnews.go.com', 'abcnews.com', 'www.corriere.it', 'www.rt.com', 'www.alarabiya.net', 'tuoitrenews.vn',
'www.yonhapnewstv.co.kr', 'www.chosun.com', 'rss.libsyn.com', 'feeds.megaphone.fm', 'rss.art19.com',
'idp.nature.com',
'www.tanea.gr',
'www.liberal.gr',
'www.cnn.gr',
]);

function rssProxyPlugin(): Plugin {
Expand Down
Loading