Next.js Discord

Discord Forum

Next.js Build Timeout Issue with Headless WordPress (600+ Static Pages)

Unanswered
missing1307 posted this in #help-forum
Open in Discord
I'm currently facing an issue while deploying my headless WordPress project. I'm using Next.js as the frontend framework, and most of the pages are static — around 600 pages in total.

Lately, I've been encountering a problem during the build process (please see the attached screenshot). I'm not exactly sure what's causing it, but I suspect it might be due to:

Network issues when connecting to the Apollo Server, or

The large number of pages being statically generated, which might be causing timeouts.

If anyone has experienced something similar or has any insight into the root cause, I’d really appreciate your help. 😢

Thanks in advance!

1 Reply

err: ApolloError: Response not successful: Received status code 524
err:     at new ApolloError (/home/ltsadmin/ltsweb/pro_frontend/node_modules/@apollo/client/errors/errors.cjs:34:28)
err:     at /home/ltsadmin/ltsweb/pro_frontend/node_modules/@apollo/client/core/core.cjs:1853:19
err:     at both (/home/ltsadmin/ltsweb/pro_frontend/node_modules/@apollo/client/utilities/utilities.cjs:1072:53)
err:     at /home/ltsadmin/ltsweb/pro_frontend/node_modules/@apollo/client/utilities/utilities.cjs:1065:72
err:     at new Promise (<anonymous>)
err:     at Object.then (/home/ltsadmin/ltsweb/pro_frontend/node_modules/@apollo/client/utilities/utilities.cjs:1065:24)
err:     at Object.error (/home/ltsadmin/ltsweb/pro_frontend/node_modules/@apollo/client/utilities/utilities.cjs:1073:49)
err:     at notifySubscription (/home/ltsadmin/ltsweb/pro_frontend/node_modules/zen-observable/lib/Observable.js:140:18)
err:     at onNotify (/home/ltsadmin/ltsweb/pro_frontend/node_modules/zen-observable/lib/Observable.js:179:3)
err:     at SubscriptionObserver.error (/home/ltsadmin/ltsweb/pro_frontend/node_modules/zen-observable/lib/Observable.js:240:7)