robbydooo
PROOP
a year ago
I am trying to deploy a next.js application that is in a pnpm monorepo but it fails to deploy because of the configuration.
Because the lock file for pnpm is in the root of the monorepo I cant set the root directory to be that of the next.js application otherwise it tries to use npm instead of pnpm and so it
doesnt pick up the other shared packages.
Anyone know what the railway configuration should look like to support this?
5 Replies
brody
EMPLOYEE
a year ago
isolated or shared monorepo?
I got it working by using cd [PATH] && pnpm build and the same for start also but not sure if thats the best approach.
brody
EMPLOYEE
a year ago
using cd in build or start commands is almost never the correct solution.
how are you managing the monorepo? workspaces, turbo, nx, etc?