Next.js Discord

Discord Forum

App router SSG issues

Unanswered
Prairie yellowjacket posted this in #help-forum
Open in Discord
Prairie yellowjacketOP
I'm running into two issues when running generateStaticParams.

1. When there are a lot of pages to process, about half of the time I get a handful of SIGTERM errors. The linked doc page does not help, as nothing actually appears to be wrong with the function... the errors just become more common as the amount of pages grows, with no specific page being the problem.

2. When running in dev mode, or running in prod with dynamic generation, code block syntax highlighting from rehype-pretty-code and next-mdx-remote works as expected for a user-selected code language. When using SSG, it works randomly for some code languages, but fails to apply inline styles for others.

Any ideas on how to fix one or both of these issues?

0 Replies