I’m running a node server using nestjs.
When I use
yarn start, all goes well. But when I use the production build,
node ./dist/main it fails.
The build step is working properly, and running locally works fine. I get the error:
Error: Cannot find module ‘/opt/render/project/src/backend/dist/main’
This is the correct path within my project, I’m using
node ./dist/main, I’ve also tried
Could it be that the
dist folder isn’t being delivered to the server? Or is the format of my start command off?