We've been tracking for a while an Out of Memory error that seemed to happen from time to time in the build step.
We finally pinpointed the commit. Said commit caused the tsc --alwaysStrict build to go from 175MB (RAM) to complete the build to 656MB.
That commit only added the googleapis library to the package.json and use it like so import { google } from "googleapis";. Those two changes alone created this spike.
Another thing that we saw is that the inclusion of the library on the package.json incremented the build by 100MB, however, once we add the import it goes all the way up to 600MB.
It is important to say that we are only interested in gSheets.
I see a couple options going forward but I do not like any of those:
- Increasing the RAM of the server (currently 1GB)
- Using a custom or non-oficial library for this purpose
Is there another way to solve this?