Accessing shared files in monorepo

a year ago

I have railway deploys for projects within my monorepo. Each is set with root path like: /apps/project-name

I have shared packages and types on the monorepo root-level. It seems I won't be able to access these, since the app is deployed with only the scope of the project-level directory?

I'd rather not copy/paste my global types into each project, since it quickly becomes unmaintainable. What's the appropriate pattern to handle global types, such that they're available within my project-level deployments?

Thanks!

Solved

1 Replies

a year ago

Hello,

Since this is a shared monorepo you would want to deploy from the root directory, and then you set your build and start commands to specifically start the app you want to, like - pnpm --filter @railway/frontend start or whatever the equivalent is for what you are using to manage the apps.


Status changed to Awaiting User Response Railway about 1 year ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...