Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Add information about setting NODE_OPTIONS for ui when webpack throws…
Browse files Browse the repository at this point in the history
… memory error to README

Change-type: patch
Signed-off-by: Lucy-Jane Walsh <[email protected]>
  • Loading branch information
ljewalsh committed Jan 30, 2020
1 parent 644e909 commit 94ff795
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down

0 comments on commit 94ff795

Please sign in to comment.