logoalt Hacker News

berekuktoday at 3:53 AM1 replyview on HN

If I control both the backend and the frontend, yes. Server-only async components on top of layout/page component hierarchy, components -> DTO layer -> Prisma. Similar to this: https://nextjs.org/blog/security-nextjs-server-components-ac...

You still need API routes for stuff like data-heavy async dropdowns, or anything else that's hard to express as a pure URL -> HTML, but it cuts down the number of routes you need by 90% or more.


Replies

skydhashtoday at 10:32 AM

You’re just shifting the problem from HTTP to an adhoc protocol on top of it.

show 1 reply