We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e266aa commit b78c8c5Copy full SHA for b78c8c5
index.js
@@ -67,6 +67,10 @@ You can do this by running: "npm install -g netlify-cli@latest" or "yarn global
67
)
68
}
69
await restoreCache({ cache: utils.cache, distDir: nextConfig.distDir, nextRoot })
70
+
71
+ // Exit the build process on unhandled promise rejection. This is the default in Node 15+, but earlier versions just warn.
72
+ // This causes problems as it doesn't then know the build has failed until we try to copy the assets.
73
+ process.env.NODE_OPTIONS = [process.env.NODE_OPTIONS, '--unhandled-rejections=strict'].filter(Boolean).join(' ')
74
},
75
async onBuild({
76
netlifyConfig,
0 commit comments