How to debug a specific Gatsby package on build

#113 · May 29, 2022 · Estimated 1 minute read
TechnicalGatsbydev.to

Originally posted on dev.to

I got an error and needed to get verbose logs for a particular package during a Gatsby build.

I came across this issue on GitHub with reference to a DEBUG env var that can be set to get better logs.

DEBUG=gatsby:gatsby-plugin-sharp npm run build