Skip to content

Commit 4366db6

Browse files
committed
Merge.
2 parents 1585c5f + 49e7f8a commit 4366db6

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Significant changes have been made to the API for using the server as a Node.js
1212

1313
An important note is that the Export Server now requires `Node.js v18.12.0` or a higher version.
1414

15-
Additionally, with the v3 release, we transitioned from HTTP to HTTPS for export.highcharts.com, so all requests sent to our public server now must use the HTTPS protocol.
15+
Additionally, with the v3 release, we transitioned from HTTP to HTTPS for `export.highcharts.com`, so all requests sent to our public server now must use the HTTPS protocol.
1616

1717
## Changelog
1818

@@ -111,6 +111,10 @@ This flexibility is particularly useful for deciding whether global options shou
111111

112112
The `singleExport()`, `batchExport()`, and `startExport()` functions must be provided with at least partial options that include one of the following options from the `export` section: `infile`, `instr`, `svg`, or `batch`. Any missing values in the provided options object will automatically default to those specified in the global options object. Unlike other API functions, options provided to the export functions will not be merged into the global options object, as these options represent a specific export process. To make the export options global, you can use the `updateOptions()` function before initiating the export.
113113

114+
### Options Setting
115+
116+
Essentially, all options can be configured through `.env`, the CLI, and prompts, with one exception: the `HIGHCHARTS_ADMIN_TOKEN`, which is only available as an environment variable.
117+
114118
## Default JSON Config
115119

116120
The JSON below represents the default configuration stored in the `./lib/schemas/config.js` file. If no `.env` file is found (more details on the file and environment variables below), these options will be used. The configuration is not recommended to be modified directly, as it can typically be managed through other sources.
@@ -932,7 +936,7 @@ The Export Server attaches event listeners to `process.exit`, `uncaughtException
932936

933937
Listeners are also attached to handle `uncaught exceptions`. If an exception occurs, the entire pool and browser instance are terminated, and the application is shut down.
934938

935-
If you do not want this behavior, start the server with `--listenToProcessExits 0` or `--listenToProcessExits false`.
939+
If you do not want this behavior, start the server with `--listenToProcessExits false`.
936940

937941
Be aware though, that if you disable this and you do not take great care to manually kill the pool of resources along with a browser instance, your server will bleed memory when the app is terminated.
938942

dist/index.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/index.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See LICENSE file in root for details.
1919
*/
2020

2121
import { readFileSync } from 'fs';
22-
import { isAbsolute, join, normalize, resolve } from 'path';
22+
import { isAbsolute, normalize, resolve } from 'path';
2323
import { fileURLToPath } from 'url';
2424

2525
const MAX_BACKOFF_ATTEMPTS = 6;

0 commit comments

Comments
 (0)