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
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,40 @@ visit your app at `http://localhost:4200/?fastboot=false`. If you want to turn o
60
60
61
61
You can even disable serving fastboot with `ember serve` using an environment flag: `FASTBOOT_DISABLED=true ember serve`. If you have disabled building fastboot assets using the same flag as described [here](https://github.com/ember-fastboot/ember-cli-fastboot#double-build-times-and-no-incremental-builds), remember to also disable serving fastboot assets when using `ember serve`.
62
62
63
+
### FastBoot Configuration
64
+
65
+
When running locally using `ember serve` you can pass options into FastBoot instance via `config/fastboot.js` file. The configuration file is applicable only for applications, addons are not supported.
66
+
67
+
```js
68
+
module.exports=function(environment) {
69
+
let myGlobal = environment ==='production'?process.env.MY_GLOBAL:'testing';
70
+
71
+
return {
72
+
sandboxGlobals: {
73
+
myGlobal;
74
+
}
75
+
};
76
+
}
77
+
```
78
+
79
+
There are several options available, see FastBoot's [README](https://github.com/ember-fastboot/fastboot/tree/v2.0.3#usage) for more information, but be aware that `distPath` is provided internally by `ember-cli-fastboot`, hence it can not be modified by this file.
80
+
81
+
### FastBoot App Server Configuration
82
+
83
+
When using FastBoot App Server for production environment you have to manually pass options from `config/fastboot.js` file.
0 commit comments