Appwrite
dennisivy's profile
Dennis Ivy@dennisivy•Dec 22, 2025
2K

You dont need API routes anymore

From youtube.com•Dec 22, 2025•1m watch time

Next.js requires API routes to query databases from client components, adding an extra layer of indirection. TanStack Start offers server functions as an alternative solution—these functions can be called from client components but execute only on the server, allowing direct database access without creating separate API routes. This approach eliminates the need for intermediate API endpoints when accessing your own database from client-side code.

16 Comments

Sort:

dennisivy's user avatar
Dennis Ivy
@dennisivy
Joined Oct 24. 2023
2K

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard