How to prevent Netlify from treating warnings as errors because process.env.CI = true?

前端 未结 7 1449
长发绾君心
长发绾君心 2021-02-18 23:39

Deploying new projects started failing on Netlify. Checking the logs I see something that was not in the logs on previous successful deploys:

Treating warnings a         


        
7条回答
  •  感情败类
    2021-02-19 00:02

    You need to have CI to be false during your build command.

    Go to: https://app.netlify.com/sites/mysales-krohne/settings/deploys > Build command and change it to:

    CI=false npm run build

    Now, rebuild your deployment. Should be no problem anymore.

提交回复
热议问题