File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
packages/open-next/src/core/routing Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 6
6
steps :
7
7
# Install nodejs. https://github.com/actions/setup-node
8
8
- name : Setup Node.js
9
- uses : actions/setup-node@v5
9
+ uses : actions/setup-node@v4
10
10
with :
11
- node-version : 20 .x
11
+ node-version : 18 .x
12
12
13
13
# Install pnpm. https://github.com/pnpm/action-setup
14
14
- uses : pnpm/action-setup@v4
Original file line number Diff line number Diff line change @@ -90,11 +90,11 @@ jobs:
90
90
with :
91
91
version : 9
92
92
93
- - name : Set up NodeJS v20
94
- uses : actions/setup-node@v5
93
+ - name : Set up NodeJS v18
94
+ uses : actions/setup-node@v4
95
95
with :
96
96
cache : pnpm # cache pnpm store
97
- node-version : 20.19.5
97
+ node-version : 18.18.2
98
98
99
99
- name : Install packages
100
100
run : pnpm install
Original file line number Diff line number Diff line change 20
20
uses : actions/checkout@v4
21
21
22
22
# Setup .npmrc file to publish to npm
23
- - uses : actions/setup-node@v5
23
+ - uses : actions/setup-node@v4
24
24
with :
25
25
registry-url : " https://registry.npmjs.org"
26
26
Original file line number Diff line number Diff line change 12
12
uses : actions/checkout@v4
13
13
14
14
# Setup .npmrc file to publish to npm
15
- - uses : actions/setup-node@v5
15
+ - uses : actions/setup-node@v4
16
16
with :
17
17
registry-url : " https://registry.npmjs.org"
18
18
Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ export function convertRes(res: OpenNextNodeResponse): InternalResult {
105
105
const isBase64Encoded =
106
106
isBinaryContentType ( headers [ "content-type" ] ) ||
107
107
! ! headers [ "content-encoding" ] ;
108
- const body =
109
- res . _chunks == null
110
- ? new ReadableStream ( {
111
- start ( controller ) {
112
- controller . close ( ) ;
113
- } ,
114
- } )
115
- : ReadableStream . from ( res . _chunks ) ;
108
+ const body = new ReadableStream ( {
109
+ start ( controller ) {
110
+ for ( const chunk of res . _chunks ?? [ ] ) {
111
+ controller . enqueue ( chunk ) ;
112
+ }
113
+ controller . close ( ) ;
114
+ } ,
115
+ } ) ;
116
116
return {
117
117
type : "core" ,
118
118
statusCode,
You can’t perform that action at this time.
0 commit comments