We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a1202 commit 30cff92Copy full SHA for 30cff92
src/run/handlers/cache.cts
@@ -176,7 +176,13 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
176
typeof cacheControl !== 'undefined')
177
) {
178
try {
179
- const { loadManifest } = await import('next/dist/server/load-manifest.js')
+ 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
+ }
186
const prerenderManifest = loadManifest(
187
join(this.options.serverDistDir, '..', 'prerender-manifest.json'),
188
) as PrerenderManifest
0 commit comments