File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
packages/runtime/src/templates Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2828 with :
2929 deno-version : v1.x
3030 - 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
3232 - name : NPM Install
3333 run : npm install
3434 - name : Run integration tests
Original file line number Diff line number Diff line change @@ -135,10 +135,12 @@ export const augmentFsModule = ({
135135
136136 // ...then monkey-patch it to see if it's requesting a CDN file
137137 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 ( )
142144 // We only want the part after `.next/server/`
143145 const filePath = file . slice ( pageRoot . length + 1 )
144146
You can’t perform that action at this time.
0 commit comments