Skip to content

Conversation

@Muritavo
Copy link

Here at my company, we use the prerender loader to allow us to reuse components/layouts from our app to generate email templates using react.
When we created a high number of email templates, the process started crashing because of high memory usage.

I made a few changes to the implementation so we can counter these issues:

  • Added a new option called "maxParallelTasks" to limit the number of compilations ocurring at the same time, because all entries are compiled in parallel. If omitted, it will keep the old behaviour.
  • Added a new option called "log" to allow us to track when a prerender starts and ends

Also fixed the test command 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant