PNPM not being used

pulgueta
TRIAL

a year ago

I'm building a monorepo which uses pnpm but I'm deploying each app separately with Github Actions, however, I'm trying to deploy from the CLI just to test if everything works fine, but I get this error:

11 3.464 npm ERR! Unsupported URL Type "workspace:": workspace:*

Which is of course because I'm using dependencies from a monorepo, which according to documentation, Nixpack should already use pnpm if there's a pnpm lockfile present, which is but is not taken into account.

I'm also curious if I should deploy my app by linking my Github repository and how can I link every dependency as there's almost 0 information, tutorials, documentation on how to deploy a monorepo which includes packages to share code across apps such as Turborepo

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

a year ago

The high level overview is -

- Make sure you have specific build and start commands for all apps, E.g build:api and start:api

- Deploy your project to Railway with your repo as the source and the root directory left as the default if /

- For each service you will need a separate Railway service
- In each service you would need to specify the applicable build and start commands in the service settings

More info here - https://docs.railway.app/guides/monorepo#deploying-a-shared-monorepo


PNPM not being used - Railway Help Station