Skip to content

Commit 3d589fc

Browse files
committed
fix ORIGIN_URL
1 parent 49b9f87 commit 3d589fc

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

prerender.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const files = fs.readdirSync(`${process.cwd()}/dist-server`);
1111

1212
global['window'] = win;
1313
Object.defineProperty(win.document.body.style, 'transform', {
14-
value: () => {
15-
return {
16-
enumerable: true,
17-
configurable: true
18-
};
19-
},
14+
value: () => {
15+
return {
16+
enumerable: true,
17+
configurable: true
18+
};
19+
},
2020
});
2121
global['document'] = win.document;
2222
global['CSS'] = null;
@@ -73,6 +73,10 @@ ROUTES.forEach(route => {
7373
},
7474
{
7575
provide: RESPONSE, useValue: null
76+
},
77+
{
78+
provide: 'ORIGIN_URL',
79+
useValue: 'http://localhost:4000'
7680
}
7781
]
7882
})).then(html => writeFileSync(join(fullPath, 'index.html'), html));

0 commit comments

Comments
 (0)