mono repo with multiple next.js apps sharing one nextjs api example?
Does anyone have an example of a mono repo, one app with the t3 stack, another with nextron?
Currently: apps/nextron app/full-stack.
full-stack has all t3 boiler plate, but I would like to reuse the same trpc, prisma, nextjs api code for both apps. Just trying to figure out a good way to approach this.
Currently: apps/nextron app/full-stack.
full-stack has all t3 boiler plate, but I would like to reuse the same trpc, prisma, nextjs api code for both apps. Just trying to figure out a good way to approach this.
7 Replies
I think that I'm not using trpc correctly for it's intended use and need to just create a rest api and use react-query instead
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@xprim thanks for the suggestion. Someone else recommended https://github.com/t3-oss/create-t3-turbo. I will be trying to refactor my code to use this as a boiler plate tomorrow.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thats dope, I will reference both then while doing my refactor.
Glad that it helped you
@xprim question for ya. I'n my apps/electron-app/util/trpc. I'm trying to
import type { AppRouter } from '@c-tab/api'
but im getting the error
did you run into this at all?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thanks was doing that. turns out you need to place your utils/trpc in the renderer directory.