Skip to content

Commit ac2add3

Browse files
committed
feat: show summary build status
1 parent 296a7f1 commit ac2add3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

+8
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,20 @@ module.exports = {
7777

7878
async onPostBuild({ netlifyConfig, packageJson, constants: { FUNCTIONS_DIST }, utils }) {
7979
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+
})
8084
return
8185
}
8286

8387
const nextConfig = await getNextConfig(utils.failBuild)
8488
await saveCache({ cache: utils.cache, distDir: nextConfig.distDir })
8589
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+
})
8694
},
8795
}
8896

0 commit comments

Comments
 (0)