File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,20 @@ module.exports = {
77
77
78
78
async onPostBuild ( { netlifyConfig, packageJson, constants : { FUNCTIONS_DIST } , utils } ) {
79
79
if ( await doesNotNeedPlugin ( { netlifyConfig, packageJson, utils } ) ) {
80
+ utils . status . show ( {
81
+ title : 'Essential Next.js Build Plugin did not run' ,
82
+ summary : 'The site either uses static export, or manually runs next-on-netlify' ,
83
+ } )
80
84
return
81
85
}
82
86
83
87
const nextConfig = await getNextConfig ( utils . failBuild )
84
88
await saveCache ( { cache : utils . cache , distDir : nextConfig . distDir } )
85
89
copyUnstableIncludedDirs ( { nextConfig, functionsDist : FUNCTIONS_DIST } )
90
+ utils . status . show ( {
91
+ title : 'Essential Next.js Build Plugin ran successfully' ,
92
+ summary : 'Generated serverless functions and stored the Next.js cache' ,
93
+ } )
86
94
} ,
87
95
}
88
96
You can’t perform that action at this time.
0 commit comments