diff --git a/app/api/news/route.ts b/app/api/news/route.ts index 51f6812..ff58881 100644 --- a/app/api/news/route.ts +++ b/app/api/news/route.ts @@ -90,7 +90,7 @@ export async function GET() { try { console.log('Fetching news from FastAPI server...'); - const response = await fetch(`${API_URL}/news?limit=10`, { + const response = await fetch(`${API_URL}/news?limit=12`, { method: 'GET', headers: { 'Accept': 'application/json', diff --git a/components/news.tsx b/components/news.tsx index 39b9ad4..0f7a4fd 100644 --- a/components/news.tsx +++ b/components/news.tsx @@ -99,14 +99,14 @@ export function News() { {error ? (

{error}

) : ( -
+
{news.length === 0 ? (

No news available

) : ( news.map((item) => (
window.open(item.url, '_blank')} >