-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
In our project there are about 6000 pages (2000 pages * 3 languages). It's development state and production site will have about 20-25 languages (so, > 40000 pages)
For now, during develop google chrome returns error in dev console
Uncaught RangeError: Maximum call stack size exceeded
Firefox works well (because has bigger stack size limit)
And build state return error:
WebpackError: Maximum call stack size exceeded
For one language (~2000 pages) all work fine.
For build tried to use options of nodejs:
--max-old-space-size=100000 --stack-size=65000
End system-wide:
ulimit -s 65000
But it did not help.
Spent some time for investigation and seems that will be spent much more.
Has anybody experience of generation sites with huge amount of pages (more then 10000)?
Are there any idea how to fix it fast?
As alternative of generation of such amount of static pages I see using SSR (most part of pages it's almost the same pages with trading instruments information) But do not want to use this approach because in this case we will not be able to use pure S3 for hosting the site.
Will be grateful for any help