Is there a way to stop npm run build programatically in Next.js as soon as a certain Error occurs in getStaticProps? Just throwing an Error does not stop the build process.
npm run build
getStaticProps