You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If a file matches middleware it can't be offloaded to the CDN, and needs to stay at the origin to be served by next/server
77
+
if(middlewarePath){
78
+
matchingMiddleware.add(middlewarePath)
79
+
matchedPages.add(rawPath)
80
+
return
81
+
}
39
82
returnlimit(moveFile,filePath)
40
83
})
41
84
awaitPromise.all(promises)
42
85
console.log(`Moved ${files.length} files`)
43
86
87
+
if(matchedPages.size!==0){
88
+
console.log(
89
+
yellowBright(outdent`
90
+
Skipped moving ${matchedPages.size}${
91
+
matchedPages.size===1 ? 'file because it matches' : 'files because they match'
92
+
} middleware, so cannot be deployed to the CDN and will be served from the origin instead. This is fine, but we're letting you know because it may not be what you expect.
93
+
`),
94
+
)
95
+
96
+
console.log(
97
+
outdent`
98
+
The following middleware matched statically-rendered pages:
0 commit comments