10 months ago
I've been trying to deploy my NestJS backend for two days, and it's impossible.
Locally, there's no problem—I run:
npm ci --omit=dev
npm run build
and everything works fine.
But when I try to deploy on Railway... it's hell.
I've tried EVERYTHING, but right now I'm using the following setup:
Nixpacks
Node.js
npm run build
The worst part is that the error doesn't tell me anything useful—it just says the build failed.
I paste everything into ChatGPT, but its solutions don't fix anything.
What should I do?
1 Replies
10 months ago
Hello,
Attached you will find the error message gathered from your build logs.
Perhaps the double forward slash is an issue?
I would also highly recommend setting your engines.node In your package.json to the Node version you use locally.
Best,
Brody
Attachments
Status changed to Awaiting User Response Railway • 10 months ago
6 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 • 6 months ago