File tree 2 files changed +8
-3
lines changed
packages/next-on-pages/templates/_worker.js
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @cloudflare/next-on-pages ' : patch
3
+ ---
4
+
5
+ fix internal usage of ` global ` instead of ` globalThis ` (which causes some reference errors)
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ const patchedDefineProperty = (
44
44
return originalDefineProperty ( ...args ) ;
45
45
} ;
46
46
47
- global . Object . defineProperty =
48
- patchedDefineProperty as typeof global . Object . defineProperty ;
47
+ globalThis . Object . defineProperty =
48
+ patchedDefineProperty as typeof globalThis . Object . defineProperty ;
49
49
50
- global . AbortController = class PatchedAbortController extends AbortController {
50
+ globalThis . AbortController = class PatchedAbortController extends AbortController {
51
51
constructor ( ) {
52
52
try {
53
53
super ( ) ;
You can’t perform that action at this time.
0 commit comments