From e372220beb92db583953e03dd0a9cebe25406d1b Mon Sep 17 00:00:00 2001 From: Jaleel Bennett Date: Fri, 2 Aug 2024 09:48:41 -0400 Subject: [PATCH] fix(article): storing base url in db --- app/article/article-wrapper.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/article/article-wrapper.tsx b/app/article/article-wrapper.tsx index 0864e65..a54cbbf 100644 --- a/app/article/article-wrapper.tsx +++ b/app/article/article-wrapper.tsx @@ -22,8 +22,14 @@ export const getCachedArticle = unstable_cache( }, ); -async function ArticleLoader({ url }: { url: string }) { - const content = await getCachedArticle(url); +async function ArticleLoader({ + url, + urlWithoutPaywall, +}: { + url: string; + urlWithoutPaywall: string; +}) { + const content = await getCachedArticle(urlWithoutPaywall); // const content = await scrapeArticleContent(url); if (!content) { @@ -82,7 +88,7 @@ export async function ArticleWrapper({ url }: { url: string }) { return ( }> - + ); }