diff --git a/package.json b/package.json index 2b2e8a413..32567e2a9 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,9 @@ "release-it-lerna-changelog": "^3.1.0", "release-it-yarn-workspaces": "^2.0.0" }, + "resolutions": { + "fastboot": "4.1.1" + }, "publishConfig": { "registry": "https://registry.npmjs.org" }, diff --git a/packages/ember-cli-fastboot/fastboot/instance-initializers/fetch.js b/packages/ember-cli-fastboot/fastboot/instance-initializers/fetch.js index d2768fe05..498e054c7 100644 --- a/packages/ember-cli-fastboot/fastboot/instance-initializers/fetch.js +++ b/packages/ember-cli-fastboot/fastboot/instance-initializers/fetch.js @@ -1,6 +1,8 @@ function initialize(instance) { let { request } = instance.lookup('service:fastboot'); - fetch.__fastbootRequest = request; + if (fetch) { + fetch.__fastbootRequest = request; + } } export default { diff --git a/test-packages/custom-fastboot-app/public/custom-index.html b/test-packages/custom-fastboot-app/public/custom-index.html index a21d3d3e3..627f0c40a 100644 --- a/test-packages/custom-fastboot-app/public/custom-index.html +++ b/test-packages/custom-fastboot-app/public/custom-index.html @@ -13,7 +13,9 @@
- +