Skip to content

Commit a57a066

Browse files
committed
Merge branch 'main' into feat/internal-functions
2 parents 9893a29 + 7f91eca commit a57a066

21 files changed

+1342
-1078
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## [3.8.0](https://www.github.com/netlify/netlify-plugin-nextjs/compare/v3.7.1...v3.8.0) (2021-08-02)
4+
5+
### Features
6+
7+
* add NEXT_PLUGIN_FORCE_RUN to skip auto-detection ([#547](https://www.github.com/netlify/netlify-plugin-nextjs/issues/547)) ([e3e7cd1](https://www.github.com/netlify/netlify-plugin-nextjs/commit/e3e7cd1c863d48eeea77e5c4197b80db8392243d))
8+
* support function bundling with esbuild ([#490](https://www.github.com/netlify/netlify-plugin-nextjs/issues/490)) ([4aff708](https://www.github.com/netlify/netlify-plugin-nextjs/commit/4aff70829952ce72aa6382c247dc9c78f4d1b17d))
9+
10+
11+
### Bug Fixes
12+
13+
* **deps:** update dependency chalk to v4.1.2 ([#572](https://www.github.com/netlify/netlify-plugin-nextjs/issues/572)) ([fc943bb](https://www.github.com/netlify/netlify-plugin-nextjs/commit/fc943bb943375b6621f9c28c2279d39677daf4cc))
14+
* **deps:** update dependency commander to v8.1.0 ([#574](https://www.github.com/netlify/netlify-plugin-nextjs/issues/574)) ([81788c7](https://www.github.com/netlify/netlify-plugin-nextjs/commit/81788c74abfc453d7df6c975f1072eff8d1f140f))
15+
* **deps:** update dependency mime-types to v2.1.32 ([#573](https://www.github.com/netlify/netlify-plugin-nextjs/issues/573)) ([b6bc749](https://www.github.com/netlify/netlify-plugin-nextjs/commit/b6bc749ad6949c402f8cd278660b3acb925fc131))
16+
* exit on unhandled promsie rejection ([#566](https://www.github.com/netlify/netlify-plugin-nextjs/issues/566)) ([b78c8c5](https://www.github.com/netlify/netlify-plugin-nextjs/commit/b78c8c5ea040b0653529b6a923acfe08edc77fdc))
17+
* handle monorepo caching ([#538](https://www.github.com/netlify/netlify-plugin-nextjs/issues/538)) ([9477e0e](https://www.github.com/netlify/netlify-plugin-nextjs/commit/9477e0ed70db533ae7d8e6f33c9069c48aa6a9b3))
18+
* handle workspace commands ([4de9f1e](https://www.github.com/netlify/netlify-plugin-nextjs/commit/4de9f1eaba72fa2d3d2d41d375f0c2f894bc2482))
19+
* preview mode for odb/fallback pages ([#564](https://www.github.com/netlify/netlify-plugin-nextjs/issues/564)) ([0732219](https://www.github.com/netlify/netlify-plugin-nextjs/commit/07322195d21719fee7a57e2f5f672a1af777071f))
20+
21+
22+
### Miscellaneous Chores
23+
24+
* release 3.8.0 ([41de73c](https://www.github.com/netlify/netlify-plugin-nextjs/commit/41de73c12aba0c7cb8e2d97bad15ab4c52482fe1))
25+
326
### [3.7.1](https://www.github.com/netlify/netlify-plugin-nextjs/compare/v3.7.0...v3.7.1) (2021-07-15)
427

528

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ The plugin no longer uses these and they should be deleted to avoid conflicts.\n
8484
}
8585

8686
await restoreCache({ cache: utils.cache, distDir: nextConfig.distDir, nextRoot })
87+
88+
// Exit the build process on unhandled promise rejection. This is the default in Node 15+, but earlier versions just warn.
89+
// This causes problems as it doesn't then know the build has failed until we try to copy the assets.
90+
process.env.NODE_OPTIONS = [process.env.NODE_OPTIONS, '--unhandled-rejections=strict'].filter(Boolean).join(' ')
8791
},
8892
async onBuild({
8993
netlifyConfig,

0 commit comments

Comments
 (0)