New CI=true build configuration, "Treating warnings as errors because process.env.CI = true"

Hi,

Just a few clarifications on how to disable this. If your build command is npm run build, then you can disable it by setting a custom build command in the UI under your site’s Build Settings to:

CI= npm run build

or if you are using netlify.toml to set the build command, update it as such:

...
  command = "CI= npm run build"
...

Either option should work. You should see this build command reflected in the build output as well.

Cheers,
Mike

1 Like