You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* By default, this sandbox is the built-in `VMSandbox` class, which uses
17
17
* Node's `vm` module. You may provide your own sandbox implementation by
18
-
* passing the `sandbox` option.
18
+
* passing the `sandbox` option or add and/or override sandbox variables by
19
+
* passing the `addOrOverrideSandboxGlobals` option.
19
20
*
20
21
* @example
21
22
* const FastBoot = require('fastboot');
22
23
*
23
24
* let app = new FastBoot({
24
-
* distPath: 'path/to/dist'
25
+
* distPath: 'path/to/dist',
26
+
* sandbox: 'path/to/sandboxClass',
27
+
* sandboxGlobals: {...}
25
28
* });
26
29
*
27
30
* app.visit('/photos')
@@ -36,15 +39,17 @@ class FastBoot {
36
39
* @param {string} options.distPath the path to the built Ember application
37
40
* @param {Boolean} [options.resilient=false] if true, errors during rendering won't reject the `visit()` promise but instead resolve to a {@link Result}
38
41
* @param {Sandbox} [options.sandbox=VMSandbox] the sandbox to use
42
+
* @param {Object} [options.sandboxGlobals={}] any additional sandbox variables that an app server wants to override and/or add in the sandbox
0 commit comments