Next.js Discord

Discord Forum

Throttling static site generation?

Unanswered
Prairie yellowjacket posted this in #help-forum
Open in Discord
Prairie yellowjacketOP
I'm using the rehypePrettyCode plugin to add syntax highlighting to markdown content.

This is increasing the build time from 20 seconds to over 2 minutes.

But the problem is that inline styles do not get added to the generated html for the later pages, when processing about 800 pages.

It's not a bug in the markdown content, as removing any content results in the last content getting rendered properly.

Can I maybe fix this by processing this content slower, or doing so in multiple batches instead of all at once?

0 Replies