Warnings as Error

  1. Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically.

    1. Configure Environment Variables in Netlify: Alternatively, you can set the CI environment variable to false in Netlify's build environment settings:

      • Navigate to your site dashboard on Netlify.
      • Go to "Site settings".
      • Under "Build & deploy", click "Environment".
      • Add a new environment variable: CI with the value false.

    All notes