Builds not using custom build command
reprallyjack
PROOP

2 months ago

In recent builds against our app birdie-staging, it appears that the build is running a broader npx turbo run build right after running our custom build command. I'm not exactly sure why it's running that.

Any ideas of why or what could have changed?

$20 Bounty

6 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 2 months ago


noahd
EMPLOYEE

2 months ago

Hey there! Are you currently using Railpacks/nixpacks or a Dockerfile?


reprallyjack
PROOP

2 months ago

We're using nixpacks


noahd
EMPLOYEE

2 months ago

Interesting, I wonder if the automatic builder is overriding or doing something funky with build steps.
Can I suggest switching to a custom Dockerfile? Extremely simple to set up and I highly recommend the level of control you get over it.
A big lack of "magic box" situations!

Very happy to help you walk through setting one up if you need.


reprallyjack
PROOP

2 months ago

I can definitely work on that at a later time, but for now, any ideas? As fas as I can tell, the configurations & settings for the same app in the production environment are exactly the same, and production builds properly.


reprallyjack

I can definitely work on that at a later time, but for now, any ideas? As fas as I can tell, the configurations & settings for the same app in the production environment are exactly the same, and production builds properly.

noahd
EMPLOYEE

2 months ago

Hmmm, in terms of a quick fix im not that sure. Nixpacks is slowly being phased out in favor of Railpacks. From what I see on the nixpacks docs this might help some. https://nixpacks.com/docs/guides/configuring-builds
If its just a simple nextjs site being built, the Dockerfile should be pretty quick to set up.

Otherwise I'm generally unsure as to what could fix that sorry! The community might have more ideas but generally its a good idea to just stick with using a custom Dockerfile.


Loading...