How to increase theia max memory

I yarn build my custom blueprint theia project,get a js out of memory error

I have seen "JavaScript heap out of memory" error while building custom theia, but the link on akosyakov’s answer seems broken.

Does anyone know how to solve this problem?

Hey @wss, I just recently posted a solution on this: Failed to resolve module: @theia/electron - #2 by msujew

Before I set --max-old-space-size=8192. I use two different cumputers. one has 16GB memory and i7-7700CPU, this computer can build successfully, another computer has 8GBMemory and i5CPU, can not build and get above error. Now I will try to set --max-old-space-size=8192 in 8GBMemory computer.
a little problem before I try the new config. where could I set --max-old-space-size=8192 in theia theia blueprint. could you give a little code snap? thank you very much