Andrew D
NestJS Monorepo: Cannot find module '/app/dist/apps/server/main' on server start
Hi all,
Pretty new to Railway and Nest. I recently converted my isolated monorepo into a shared monorepo and am having problems deploying it.
My basic directory structure looks like this after being built:
The build goes fine, but when I try and start my server, the deployment crashes with the following error:
Seems like some path somewhere is getting malformed, and I'm new enough to both Railway and Nest to not be able to figure it out. I do not have a
root directory
configured in my app's settings, as locally, the server is able to be launched from the project root. Please let me know if you have any suggestions. Here is a link to the app's source code: https://github.com/andydeforest/name-that-player
Thanks!13 replies