Hey, I have an api route that returns some posts, it works when I navigate to it, but when I try to request it using a RSC, it throws a Fetch Failed error, export
async function getNews() { const res = await fetch(`${env.NEXT_PUBLIC_APP_URL}/api/news`); if (!res.ok) { throw new Error("Failed to fetch data"); } return res.json();}
async function getNews() { const res = await fetch(`${env.NEXT_PUBLIC_APP_URL}/api/news`); if (!res.ok) { throw new Error("Failed to fetch data"); } return res.json();}