File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,13 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
176176 typeof cacheControl !== 'undefined' )
177177 ) {
178178 try {
179- const { loadManifest } = await import ( 'next/dist/server/load-manifest.js' )
179+ let loadManifest
180+ try {
181+ // Starting in 15.4.0-canary.10 loadManifest was relocated (https://github.com/vercel/next.js/pull/78358)
182+ ( { loadManifest } = await import ( 'next/dist/server/load-manifest.external.js' ) )
183+ } catch {
184+ ( { loadManifest } = await import ( 'next/dist/server/load-manifest.js' ) )
185+ }
180186 const prerenderManifest = loadManifest (
181187 join ( this . options . serverDistDir , '..' , 'prerender-manifest.json' ) ,
182188 ) as PrerenderManifest
You can’t perform that action at this time.
0 commit comments