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

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

    Sometimes even after setting

    CI = yarn build or npm build command

    the build fails.

    In my case, I ran the build command on my local machine and there was an error with an import which was not being displayed in netlify console.

    So If the build is failing then run it once on your local machine this will notify of any errors.

提交回复
热议问题