Failed during stage 'building site': Build script returned non-zero exit code: 2 (

While deploying the Gatsby application, I encountered an error and observed that the logs are not displaying correctly. How can I fix this ?

This issue is previously reported on several other threads. This is an issue with Netlify, there is nothing you can do but wait for Netlify to address it. As it is a Saturday evening at Netlify HQ it is unknown when this issue may get addressed.

Please follow: Netlify Status - Build logs unavailable