File tree 2 files changed +7
-5
lines changed
packages/runtime/src/templates
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 28
28
with :
29
29
deno-version : v1.x
30
30
- name : Install netlify-cli and npm
31
- run : npm install -g netlify-cli npm
31
+ run : npm install -g netlify-cli npm@10.2.4
32
32
- name : NPM Install
33
33
run : npm install
34
34
- name : Run integration tests
Original file line number Diff line number Diff line change @@ -135,10 +135,12 @@ export const augmentFsModule = ({
135
135
136
136
// ...then monkey-patch it to see if it's requesting a CDN file
137
137
promises . readFile = ( async ( file , options ) => {
138
- const baseUrl = getBase ( )
139
-
140
- // We only care about page files
141
- if ( file . startsWith ( pageRoot ) ) {
138
+ // file argument can be a string, URL, etc - Next.js cache reading uses a string
139
+ // and that's only thing we really want to handle here, so we just do type checking
140
+ // instead of trying to handle all possible type before checking weather read
141
+ // is about page files.
142
+ if ( typeof file === 'string' && file . startsWith ( pageRoot ) ) {
143
+ const baseUrl = getBase ( )
142
144
// We only want the part after `.next/server/`
143
145
const filePath = file . slice ( pageRoot . length + 1 )
144
146
You can’t perform that action at this time.
0 commit comments