File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
packages/runtime/src/helpers Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -227,18 +227,6 @@ export const setupImageFunction = async ({
227
227
}
228
228
}
229
229
230
- const traceNextPages = async ( pages : string [ ] , publish : string ) : Promise < string [ ] > => {
231
- const requiredFiles = await Promise . all (
232
- pages . map ( async ( page ) => {
233
- const path = join ( publish , 'server' , 'pages' , `${ page } .js` )
234
- const dependencies = await getDependenciesOfFile ( path )
235
- return [ path , ...dependencies ]
236
- } ) ,
237
- )
238
-
239
- return requiredFiles . flat ( 1 )
240
- }
241
-
242
230
const traceRequiredServerFiles = async ( publish : string ) : Promise < string [ ] > => {
243
231
const requiredServerFilesPath = join ( publish , 'required-server-files.json' )
244
232
const {
@@ -301,9 +289,6 @@ export const getAPIPRouteCommonDependencies = async (publish: string) => {
301
289
traceRequiredServerFiles ( publish ) ,
302
290
traceNextServer ( publish ) ,
303
291
304
- // for some reason, ISR needs them
305
- traceNextPages ( [ '_document' , '_app' ] , publish ) ,
306
-
307
292
// used by our own bridge.js
308
293
traceNPMPackage ( 'follow-redirects' , publish ) ,
309
294
] )
You can’t perform that action at this time.
0 commit comments