Please help me to understand this monorepo setup(specially deployment/build part) #1114
BlackBeardo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ok so t3-turbo is exactly what i wanted since i am single dev for my own idea and i want to make it work on web as well as on mobile.
I have been working with next js(page router), mui, redux and all other libs since last 2 years and understand coding part pretty well.
with app router next js looks solid and I also want to try it in my current project so i choose t3-turbo. i am not good with monorepo. i have try pnpm monorepo for simple project once but that's it. turbo and this setup is little bit new to me but after work on it I understand it's benifits.
what I am trying to do is I use t3-turbo setup as it is and added one more workspace for my admin panel, which is basically copy of apps/nextjs. only change is name in package.json.
i created one page for my /contest where i will create forms and other ui part of CRUD for contest.
when i do
pnpm dev:admin
, it works fine. no errors on client or server. data fetching good, create delete api works.problem shows up when i did
pnpm build:admin
, and then db, api and validators build passed but it faild with error pasted below:**I am not sure if I am doing right and something is missing in code or env or other configs i need to check for local build, or i have to keep server running before start build of some other things?
i am fairly new with this RSC and app router, can anyone help me to understand the flow with this kind/specifically this repo setup. i tried to deploy same code(whole monorepo) in vercel with my free account. and it having same issue.
anything is helpful for me since i am learning.**
Beta Was this translation helpful? Give feedback.
All reactions