From 002f1594309790b09e0dee93c53734eb6514e1e7 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 5 Jul 2020 08:32:11 +0200 Subject: [PATCH] Add warning for yarn run build memory consumption Signed-off-by: Thomas Citharel --- docs/administration/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/administration/index.md b/docs/administration/index.md index 922797100..06cb56ef7 100644 --- a/docs/administration/index.md +++ b/docs/administration/index.md @@ -74,7 +74,13 @@ and install the Javascript dependencies yarn install ``` -Finally, we can build the front-end (this can take a few seconds) +Finally, we can build the front-end (this can take a few seconds). + +!!! warning + Building front-end can consume up to 512MB of RAM by default. If it's too much or not sufficient for your setup, you can adjust the maximum memory used by prefixing the command with the following option: + ``` + NODE_OPTIONS=--max_old_space_size=4096 + ``` ```bash yarn run build ```