10 months ago
the stage-0 is takign so much time more than 10 minutes. how can I improve this?
24 Replies
10 months ago
Hey! Do you have a nixpacks file on your project?
10 months ago
Otherwise it would use Railpack, the new builder.
@devenbhooshan yeah, that looks like nixpacks. It's deprecated, but you have to manually switch to the new builder in your railway settings if this is an older project. Give that a shot and let me know if it works.
it didn't help!!
10 months ago
Your build with Railpack is online. Can you explain what didn't work?
But now the steps that takes time are only npm install and npm build!
10 months ago
Hey, how does your package.json look like? Do you have many dependencies that justify the longer build times?
10 months ago
Is there any way you could give us an approximate count or even the dependencies themselves? Can help us define that "many are"
10 months ago
Thanks!
10 months ago
Also, I see that you're using npm as a package manager. It's known that npm is not super efficient in installing dependencies. Have you considered yarn, pnpm, or bun? I would recommend pnpm if you're indecisive.
10 months ago
For the build phase, I'm afraid there's not much we can do here as those can take a while depending on the project.
10 months ago
No problem!
Status changed to Solved passos • 10 months ago