Deploys are not using updated build command

I updated my build command in the UI (Build & deploy-> Build settings > Build command), but according to the deploy logs, new deploys are still using the old build command.

I didn’t find other similar posts on the forum.

Old build command:

npm run build

New build command:

npm install && npm start

Logs:

9:14:56 PM: Executing user command: npm run build

How do I get the deployment to start using the latest build command setting?

Not sure why the new build command isn’t being run, however Netlify automatically installs dependencies so npm install is redundant here. It’s generally accepted in any JavaScript project that uses npm/yarn that dependencies be installed manually.

@lewnelson Thanks for the reply - I figured out what was going on, I had a .netlify.toml file with a build command configured that was overriding the config from the UI.

2 Likes

great, glad to hear it’s working!