Skip to content

Conversation

@theMattCode
Copy link
Owner

No description provided.

  In Next.js, fetching own /api route from a Server Component is
considered an anti-pattern. It creates an unnecessary network request to
the same server. The Solution is to extract the logic of /api/articles
route into a reusable function and call it directly.

  Luckily, we already had this function in place and could easily skip
the network call and fix the issue.
@vercel
Copy link

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
svw-web-app Ready Ready Preview, Comment Dec 22, 2025 11:23am

@theMattCode theMattCode disabled auto-merge December 22, 2025 11:23
@theMattCode theMattCode merged commit d98eecf into main Dec 22, 2025
5 checks passed
@theMattCode theMattCode deleted the bugfix/aktuelles-page branch December 22, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants