tRPC × Next.js App RouterSource

Server Adapter

Server functions built with only @trpc/server, and no other @trpc/* packages. A Server Component calls the listPosts query, and the form calls the addPost mutation.

All posts
2 posts

This is a test post

This is another test post

Add a post
addPost rejects a title that's taken, then redirects to the new post.