Interface: EngineConfig
ghostly-engine.EngineConfig
Ghostly Engine configuration.
Hierarchyβ
β³
EngineConfig
Propertiesβ
browserβ
β’ browser: "chromium"
| "firefox"
| "webkit"
What browser to use for rendering. Defaults to 'chromium'.
Defined inβ
ghostly-engine/src/engine.ts:28
browserPathβ
β’ browserPath: null
| string
Override browser executable path.
Defined inβ
ghostly-engine/src/engine.ts:31
localeβ
β’ locale: string
Override the default browser locale. Defaults to system locale or en-US
.
Defined inβ
ghostly-engine/src/engine.ts:34
loggerβ
β’ logger: Console
A Console
to use for debug logging.
Inherited fromβ
Defined inβ
ghostly-engine/src/engine.ts:13
pageCacheβ
β’ pageCache: number
If specified, the maximum number of cached templates to keep.
Defined inβ
ghostly-engine/src/engine.ts:37
pageMaxAgeβ
β’ pageMaxAge: number
Number of seconds to keep cached template around. Defaults to 60 seconds.
Defined inβ
ghostly-engine/src/engine.ts:40
relaunchDelayβ
β’ relaunchDelay: number
A delay (in seconds) to wait before attempting to restart a crashed browser. Defaults to 1 s.
Defined inβ
ghostly-engine/src/engine.ts:43
templatePatternβ
β’ templatePattern: RegExp
A regular expression that all template network requests must match, or else they will be forbidden.
Inherited fromβ
TemplateConfig.templatePattern
Defined inβ
ghostly-engine/src/engine.ts:16
timeZoneβ
β’ timeZone: string
Override the default browser time zone. Defaults to system time zone or UTC
.
Defined inβ
ghostly-engine/src/engine.ts:46
timeoutβ
β’ timeout: number
Timeout while waiting for a command response from the template. Defaults to 10 s.
NOTE: Any call by the template to ghostly.notify will reset the watchdog and start counting from 0 again!
Inherited fromβ
Defined inβ
ghostly-engine/src/engine.ts:22
workersβ
β’ workers: number
The number of browser instances to launch. Defaults to 1.