fix: enable NODE_OPTIONS env var (#15158)

This commit is contained in:
Shelley Vohr 2018-10-18 16:57:28 -07:00 committed by Samuel Attard
parent 51f3fb9bde
commit a0b9d47d5e
3 changed files with 81 additions and 7 deletions

View file

@ -24,6 +24,28 @@ Windows console example:
The following environment variables are intended primarily for use at runtime
in packaged Electron applications.
### `NODE_OPTIONS`
Electron includes support for a subset of Node's [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#cli_node_options_options). The majority are supported with the exception of those which conflict with Chromium's use of BoringSSL.
Example:
```sh
export NODE_OPTIONS="--no-warnings --max-old-space-size=2048"
```
Unsupported options are:
```sh
--use-bundled-ca
--force-fips
--enable-fips
--openssl-config
--use-openssl-ca
```
`NODE_OPTIONS` are explicitly disallowed in packaged apps.
### `GOOGLE_API_KEY`
Electron includes a hardcoded API key for making requests to Google's geocoding