Skip to content

Commit 6786133

Browse files
committed
Issues with fastboot
1 parent 40a9192 commit 6786133

File tree

4 files changed

+21930
-29905
lines changed

4 files changed

+21930
-29905
lines changed

app/routes/application.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import Route from '@ember/routing/route';
2+
import { service } from '@ember/service';
23

34
export default class ApplicationRoute extends Route {
5+
@service intl;
6+
7+
beforeModel() {
8+
this.intl.setLocale(['en-us']);
9+
}
10+
411
model() {
512
return [
613
];

config/fastboot.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
/* eslint-disable no-redeclare */
22
/* global ReadableStream, WritableStream, TransformStream, Headers */
3+
import fetch from 'node-fetch';
4+
35
module.exports = function () {
46
return {
57
buildSandboxGlobals(defaultGlobals) {
68
return Object.assign({}, defaultGlobals, {
7-
fetch: require('node-fetch'),
9+
fetch,
810
AbortController,
911
ReadableStream:
1012
typeof ReadableStream !== 'undefined'

0 commit comments

Comments
 (0)