nextjs and express, dev but no build?

I have a nextjs monorepo with a backend in express with trpc. I'm trying to get the first push up to amplify but I can't get the 'next build' to run property. The dev works fine and everything resolves and runs, but the next build can't figure out the trpc link. Here is my basic repo. Can anyopne tell me why the linking isn't working. It has to be something with the monorepo tsconfig setups. pnpm monorepo, trpc11, nextjs15, and express. I've been stuck for 2 weeks! https://github.com/dsmurl/an-express-next
GitHub
GitHub - dsmurl/an-express-next
Contribute to dsmurl/an-express-next development by creating an account on GitHub.
1 Reply
dsmurl
dsmurlOP4d ago
Why would the dev server work but not the build in a monorepo like this?

Did you find this page helpful?