Skip to content

Releases: opennextjs/opennextjs-netlify

v4.2.2

31 Jan 14:16
4147f5d
Compare
Choose a tag to compare

4.2.2 (2022-01-31)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^0.0.9 (#1181) (2e55a9e)

v4.2.1

24 Jan 14:49
fc7ea21
Compare
Choose a tag to compare

4.2.1 (2022-01-24)

Bug Fixes

  • deps: update dependency @netlify/functions to ^0.11.0 (#1146) (4da630b)
  • deps: update dependency core-js to v3.20.3 (#1155) (043ad36)
  • provide hostname and port to server (#1149) (02053fd)

@netlify/plugin-nextjs v4.2.0

17 Jan 11:52
6865054
Compare
Choose a tag to compare

Features

@netlify/plugin-nextjs v4.1.3

13 Jan 11:24
57d366d
Compare
Choose a tag to compare

Bug Fixes

  • handle routes-manifests without staticRoutes defined (#1120) (96f3ccb)

@netlify/plugin-nextjs v4.1.2

12 Jan 14:15
1b14ea5
Compare
Choose a tag to compare

Bug Fixes

  • add specific rewrites for all SSR routes (#1105) (6fd7bcc)
  • deps: update dependency core-js to v3.20.2 (#1095) (41966ca)

@netlify/plugin-nextjs v4.1.1

21 Dec 13:18
079d4f7
Compare
Choose a tag to compare

Bug Fixes

  • fix bug that caused ISR pages to sometimes serve first built version (#1051) (62660b2)
  • force React to use production env (#1056) (eca0bee)

@netlify/plugin-nextjs v4.1.0

17 Dec 08:26
2dd05dd
Compare
Choose a tag to compare

Features

Bug Fixes

@netlify/plugin-nextjs v4.0.0

14 Dec 11:03
41f5719
Compare
Choose a tag to compare

This is a full rewrite of the Essential Next.js plugin, with a new architecture that gives greater compatibility and stability.

What's new

  • Full support for incremental static regeneration (ISR).
  • Full support for Next.js rewrites, redirects and headers.
  • Beta support for Next 12 Middleware
  • Faster builds and deploys. Instead of generating one function per route, there are just three functions per site and a much smaller list of rewrites.
  • Full support for Netlify's new persistent On-Demand Builders. Return fallback: "blocking" from getStaticPaths and your rendering will be deferred until the first page load, then persisted globally.
  • A new image server for next/image, built on Nuxt's ipx. This is a high-performance, framework-agnostic image server based on sharp. This implementation uses On-Demand Builders to persist transformed images globally. Improved source image caching reduces time-to-first-byte for new transforms.
  • Simplified configuration. You no longer need to set any Netlify-specific configuration options. For example, in a monorepo all you need to do is set publish to point to your .next directory and you can build the site in any way you like.
  • Removes requirement for the target to be set to serverless, which is deprecated in Next 12.
  • Bundling now uses Next.js's own node-file-trace, giving more predictable results and smaller uploads.

Breaking changes

The publish directory should point to the site's .next directory or distDir if set, rather than out as in previous versions of the plugin.

Migration guide

Change the publish directory to .next:

[build]
publish = ".next"

If you previously set these values, they're no longer needed and can be removed:

  • target: "serverless" in your next.config.js
  • distDir in your next.config.js
  • node_bundler = "esbuild" in netlify.toml
  • external_node_modules in netlify.toml

If you currently use redirects or rewrites on your site, see the Rewrites and Redirects guide for information on changes to how they are handled in this version.

If you want to use Next 12's beta Middleware feature, this will mostly work as expected but please read the docs on some caveats and workarounds that are currently needed.

@netlify/plugin-nextjs v4.0.0-rc.2

10 Dec 11:55
Compare
Choose a tag to compare
Pre-release

Bug Fixes

  • handle Windows paths correctly (#948) (efa53fd)
  • correctly handle requests with encoded characters (#954) (b2f8f5b)

Full Changelog: v4.0.0-rc.1...v4.0.0-rc.2

@netlify/plugin-nextjs v4.0.0-rc.1

07 Dec 14:35
35320b4
Compare
Choose a tag to compare
Pre-release

Features

Bug Fixes

  • bypass preview for static files (#918) (ecb3cc8)
  • work around a bug that caused a full response to be sent for images, even if the etag matched
  • deps: update dependency @netlify/ipx to ^0.0.8 (#902) (25f375f)