I have fairly big single page application using react-universal-component and as it went big I had an issue when loading server code. The app was always running out of memory. The fix I used was to increase max-old-space-size when starting node, but I was thinking if it would not be possible to split server code into multiple files. This would make it much easier to handle for servers with limited memory and there would not be any need to increase memory.
I have fairly big single page application using react-universal-component and as it went big I had an issue when loading server code. The app was always running out of memory. The fix I used was to increase
max-old-space-sizewhen starting node, but I was thinking if it would not be possible to split server code into multiple files. This would make it much easier to handle for servers with limited memory and there would not be any need to increase memory.