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.
7 Replies
Max
MaxOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Max
MaxOP2y ago
@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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Max
MaxOP2y ago
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
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import superjson from 'superjson'
|
> import type { AppRouter } from '@c-tab/api'
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import superjson from 'superjson'
|
> import type { AppRouter } from '@c-tab/api'
did you run into this at all?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Max
MaxOP2y ago
thanks was doing that. turns out you need to place your utils/trpc in the renderer directory.
Want results from more Discord servers?
Add your server