From f2047d10fd076089db03340832eb96fbe303fce7 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Mon, 18 Mar 2024 20:32:30 -0400 Subject: [PATCH] feat: read proxied feeds from CF worker --- src/hooks/useRSSFeeds.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hooks/useRSSFeeds.ts b/src/hooks/useRSSFeeds.ts index ec973c2..f42e1f2 100644 --- a/src/hooks/useRSSFeeds.ts +++ b/src/hooks/useRSSFeeds.ts @@ -29,7 +29,9 @@ async function fetchFeed( url: string, persistedData: Feed | null, ): Promise { - const response = await fetch(`/.netlify/functions/rss-proxy?url=${url}`); + const response = await fetch( + `https://rss-reader-api.karnov.club/?url=${url}`, + ); const responseData = await response.text();