Jaaneek
Server Component Call to TRPC on express backend
I have following structure:
- Nextjs App folder with both client components and server components
- TRPC on express backend.
Communication with client components works perfectly, but I would like to call it from the server components as well. What is the correct approach?
2 replies
Turborepo, nextjs, vite react app, express server
I have following structure
Apps:
First Frontend - Nextjs app
Second Frontend - Vite ReactApp
Backend - Express Server
Packages:
Commons - Shared types, functions etc...
I would like to create a Trpc on express server and to consume it on Nextjs App & Vite React App, did you guys seen such setup? Any tips? I'm just starting out and I only used trpc with nextjs so far
2 replies