From 69b9af0e2a11191f87fd2188298e0143a42164bf Mon Sep 17 00:00:00 2001 From: Nihal Gonsalves Date: Thu, 22 Apr 2021 18:36:21 +0200 Subject: [PATCH] ci: set node memory limits on CircleCI (#3095) --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 74cb374c1c1640..eee3975c1f009f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,10 @@ version: 2 defaults: &defaults docker: - image: vuejs/ci + environment: + # 4 GiB of RAM on the default medium class, so we set the max to 3.5 GiB + # https://circleci.com/docs/2.0/configuration-reference/#docker-executor + NODE_OPTIONS: --max-old-space-size=3584 step_restore_cache: &restore_cache restore_cache: