Next.js Discord

Discord Forum

Restarted static page generation for because it took more than 60 seconds

Unanswered
Thai posted this in #help-forum
Open in Discord
ThaiOP
I am running a CI/CD on Github actions to publish a NextJS 14 project, I am getting errors like this:

Restarted static page generation for /profile because it took more than 60 seconds


The CI/CD on github actions takes about 30 mins before it finally fails. It has a ton of these errors for different routes. How do I fix this?

1 Reply

ThaiOP
I have tried to disable the static generation with :
export const dynamic = 'force-dynamic';


I have put this in every component/page and still getting the error.