From 8e9e777d892d9e23173a2d7fc6f94e66b51dd6a1 Mon Sep 17 00:00:00 2001 From: Lucy-Jane Walsh Date: Fri, 31 Jan 2020 11:49:15 +1300 Subject: [PATCH] Add info about setting NODE_OPTIONS in README In order to solve the webpack memory issue Change-type: patch Signed-off-by: Lucy-Jane Walsh --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index f1429c6dacc..851f86a34ed 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,24 @@ Run them with: make compose-up ``` +If webpack throws memory error, set NODE_OPTIONS in app/ui/Dockefile + +Error: +`FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory` + +Setting NODE_OPTIONS: + +``` + RUN make build-ui \ + NODE_ENV=production \ + COVERAGE=${ENABLE_COVERAGE} \ + SENTRY_DSN_UI=$SENTRY_DSN_UI \ + SERVER_HOST=$SERVER_HOST \ + SERVER_PORT=$SERVER_PORT \ + OAUTH_REDIRECT_BASE_URL=https://jel.ly.fish \ + NODE_OPTIONS=--max-old-space-size=2048 +``` + Add endpoints to local hosts file: ```