In Netlify, my Gatsby application build is getting stuck at a certain point. This issue started appearing only in the last 2–3 days — previously, the build was running fine. I’m not sure what’s causing it. Could someone help me understand the issue and how to resolve it? I’m sharing some references below. I’ve waited for more than 16 hours, and the build is still stuck at the same point. Even if I trigger a new build, the same issue occurs again.
Based on the deploy logs and your description, it looks like the build is timing out during post-processing, likely due to slow GraphQL queries or large image processing. Here are a few suggestions:
Primary Factor:
The most likely cause is one or more very slow or unoptimized GraphQL queries (notably in MegaEvents and learn-with-us pages), possibly compounded by heavy image processing. These issues may result in worker timeouts or excessively prolonged post-processing.
Secondary Factor:
A billing or payment banner may indicate that post-processing is blocked due to paid-feature restrictions or account flags. Ensuring the account is up-to-date with payment could help remove this variable.
Recommendation:
Optimize GraphQL queries – particularly on MegaEvents and learn-with-us. Consider reducing data fetched or adding pagination.
Optimize images – make sure images are appropriately sized and compressed, and avoid unnecessary transformations during build.
Billing check – ensure your account is up-to-date, as some paid-feature processing may be blocked if billing is pending.
If the issue persists, please provide a build log with the --verbose flag enabled so we can investigate further.