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

前端 未结 7 1431
长发绾君心
长发绾君心 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:14

    You should put CI='' npm run build in your build settings.

    See error below: https://docs.netlify.com/configure-builds/troubleshooting-tips/#build-fails-on-warning-message

    But its better to correct the warnings...

提交回复
热议问题