Javascript Heap out of memory

DDante_4/5/2023
So i ran into heap out of memory error and I know it's because of less memory allocation to the script, we can increase it in terminal by allocating more memory but how can I do that in railway? Can this error be solved?