4.30.3 (2023-01-30)
- added support for "missing" matcher (#1905) (f30e178)
- correctly match params in edge runtime (#1896) (75c0535)
4.30.2 (2023-01-24)
- custom headers for root route when using i18n (#1893) (9be3382)
- handle v1 edge function definition (#1903) (cdcf60e)
4.30.1 (2023-01-23)
- added polyfill for process.env (#1889) (15af7c7)
- correctly handle ISR for appDir pages (#1855) (f2a7cac)
- correctly rewrite default locale ISR homepage to ODB handler (#1867) (14ad486)
- getMaxAge is not used in APIHandlers (#1888) (d0343b8)
- match edge runtime pages with optional trailing slash (#1892) (138b19d)
- transform Regex named capture groups for Golang (#1809) (15790aa)
4.30.0 (2023-01-09)
- deps: update dependency @netlify/functions to ^1.4.0 (#1869) (3960c31)
- deps: update dependency @netlify/ipx to ^1.3.3 (#1868) (d75d0ff)
- merge Middleware and API route response cookies (#1870) (878ddd7)
- serve static files from basePath (#1850) (d4ff894)
4.29.4 (2022-12-19)
- deps: update dependency @netlify/ipx to ^1.3.2 (#1833) (fb4d816)
- support appDir (#1638) (a5b8047)
- use static 404 for non-prerendered dynamic routes without fallback (#1795) (2aa02db)
4.29.3 (2022-12-05)
- assign globals to
self
(#1823) (993766b) - better headers.getAll polyfill (#1801) (84579c1)
- get source file for page in api routes (#1778) (2a3ad3c)
4.29.2 (2022-11-21)
- add longitude, latitude, and timezone to RequestData.geo (#1777) (3f35549)
- resolve all pages using nft (#1780) (267ff0b)
4.29.1 (2022-11-14)
- exclude sourcemaps from bundle (#1772) (4cad33e)
- polyfill headers.getAll (#1766) (b400efb)
- revert publish from subdirectory (#1771) (0554d6a)
4.29.0 (2022-11-11)
4.28.7 (2022-11-11)
4.28.6 (2022-11-07)
4.28.5 (2022-11-07)
4.28.4 (2022-11-02)
4.28.3 (2022-10-27)
4.28.2 (2022-10-26)
4.28.1 (2022-10-25)
4.28.0 (2022-10-25)
4.27.3 (2022-10-19)
4.27.2 (2022-10-19)
4.27.1 (2022-10-18)
4.27.0 (2022-10-17)
4.26.0 (2022-10-17)
- deps: update dependency @netlify/ipx to ^1.3.1 (#1686) (2b419a0)
- prevent Next from defining duplicate global property in edge functions (#1682) (730df6b)
4.25.0 (2022-10-12)
4.24.3 (2022-10-06)
4.24.2 (2022-10-05)
4.24.1 (2022-10-05)
- deps: update dependency @netlify/functions to ^1.3.0 (#1660) (4e7e2ae)
- set undefined ODB 404 TTLs to 60 seconds (#1647) (029b497)
4.24.0 (2022-10-03)
4.23.4 (2022-10-03)
4.23.3 (2022-09-28)
4.23.2 (2022-09-26)
- check NEXT_DISABLE_NETLIFY_EDGE value rather than if truthy (#1603) (5cf8c52)
- deps: update dependency @netlify/esbuild to v0.14.39 (#1623) (3dc7b23)
4.23.1 (2022-09-09)
4.23.0 (2022-09-09)
- correct handling of edge dev utils (#1616) (62c135d)
- deps: update dependency @netlify/ipx to ^1.2.5 (#1615) (362d5dd)
- support non-prerendered dynamic routes with fallback false (#1541) (92a015c)
4.22.0 (2022-09-08)
4.21.3 (2022-09-08)
4.21.2 (2022-09-06)
- clean up edge functions during build (#1588) (ae2c103)
- deps: update dependency @netlify/ipx to ^1.2.4 (#1590) (70d38ca)
- watch for creation of middleware (#1592) (3ae0ee6)
4.21.1 (2022-08-31)
4.21.0 (2022-08-30)
4.20.0 (2022-08-26)
4.19.0 (2022-08-25)
4.18.1 (2022-08-25)
4.18.0 (2022-08-22)
- ✨ change over to next-runtime (#1540) (7ecf41d)
- add edge middleware support to
ntl dev
(#1546) (b208ff4) - default edge middleware to on (#1547) (9578fa9)
- graph: populate graph token for ISR (#1525) (573b913)
- skip run if @netlify/plugin-nextjs installed (#1536) (0b4cf8c)
- support custom response headers on images served via IPX (#1515) (40cb8a9)
- check for middleware manifest before providing to Object.keys (#1559) (f500f51)
- deps: update dependency @netlify/functions to ^1.1.0 (#1526) (8a98d72)
- deps: update dependency @netlify/functions to ^1.2.0 (#1543) (81381eb)
- deps: update dependency @netlify/ipx to ^1.2.1 (#1534) (086a703)
- deps: update dependency @netlify/ipx to ^1.2.2 (#1544) (097e624)
- ensure newly-created middleware works (#1558) (39f3b4b)
- handle missing config base (#1555) (f69d9db)
- use individual next/server deno imports (#1556) (0667662)
4.17.0 (2022-08-17)
- ✨ change over to next-runtime (#1540) (7ecf41d)
- graph: populate graph token for ISR (#1525) (573b913)
- skip run if @netlify/plugin-nextjs installed (#1536) (0b4cf8c)
- support custom response headers on images served via IPX (#1515) (40cb8a9)
- deps: update dependency @netlify/functions to ^1.1.0 (#1526) (8a98d72)
- deps: update dependency @netlify/functions to ^1.2.0 (#1543) (81381eb)
- deps: update dependency @netlify/ipx to ^1.2.1 (#1534) (086a703)
- deps: update dependency @netlify/ipx to ^1.2.2 (#1544) (097e624)
4.16.0 (2022-08-15)
- deps: update dependency @netlify/functions to ^1.1.0 (#1526) (8a98d72)
- deps: update dependency @netlify/ipx to ^1.2.1 (#1534) (086a703)
4.15.0 (2022-08-12)
4.14.2 (2022-08-11)
- allow proxy of /_next/static (#1503) (4efef60)
- deps: update dependency @netlify/ipx to ^1.1.4 (#1512) (44bdb1f)
- deps: update dependency @netlify/ipx to ^1.2.0 (#1516) (b90bf3e)
4.14.1 (2022-08-03)
4.14.0 (2022-08-01)
4.13.1 (2022-07-25)
4.13.0 (2022-07-21)
4.12.2 (2022-07-13)
4.12.1 (2022-07-12)
4.12.0 (2022-07-12)
4.11.2 (2022-07-12)
4.11.1 (2022-06-30)
4.11.0 (2022-06-30)
4.10.1 (2022-06-29)
4.10.0 (2022-06-29)
4.9.3 (2022-06-24)
4.9.2 (2022-06-23)
4.9.1 (2022-06-14)
4.9.0 (2022-06-14)
- deps: update dependency @netlify/ipx to ^1.1.0 (#1377) (9ed5c38)
- run edge middleware on data requests (#1382) (55755df)
4.8.0 (2022-06-06)
4.7.1 (2022-05-25)
- deps: update dependency @netlify/ipx to v1 (#1343) (4ab9ff4)
- don't override user defined NEXTAUTH_URL (#1360) (9010da3)
4.7.0 (2022-05-02)
4.6.0 (2022-04-28)
4.5.0 (2022-04-26)
4.4.4 (2022-04-26)
4.4.3 (2022-04-25)
4.4.2 (2022-04-19)
4.4.1 (2022-04-19)
4.4.0 (2022-04-19)
4.3.2 (2022-04-04)
4.3.1 (2022-03-28)
4.3.0 (2022-03-23)
4.2.8 (2022-03-21)
- add new /trace to HIDDEN_PATHS (#1259) (84345a8)
- chdir to site root (#1265) (8463bbc)
- deps: update dependency @netlify/ipx to ^0.0.10 (#1237) (16e067d)
- use correct publishDir when building from CLI with cwd option (#1264) (e441c97)
4.2.7 (2022-02-18)
- correctly cache when using
next export
(#1223) (a8030ca) - deps: update dependency @netlify/functions to ^0.11.1 (#1217) (e17892b)
- deps: update dependency @netlify/functions to v1 (#1219) (af841cd)
4.2.6 (2022-02-14)
4.2.5 (2022-02-07)
4.2.4 (2022-02-03)
4.2.3 (2022-02-02)
4.2.2 (2022-01-31)
4.2.1 (2022-01-24)
- 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)
4.2.0 (2022-01-17)
4.1.3 (2022-01-13)
4.1.2 (2022-01-11)
- add specific rewrites for all SSR routes (#1105) (6fd7bcc)
- deps: update dependency core-js to v3.20.2 (#1095) (41966ca)
4.1.1 (2021-12-21)
- fix bug that caused ISR pages to sometimes serve first built version (#1051) (62660b2)
- force React to use production env (#1056) (eca0bee)
4.1.0 (2021-12-17)
4.0.0 (2021-12-14)
This is a full rewrite of the Essential Next.js plugin, with a new architecture that gives greater compatibility and stability.
- 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"
fromgetStaticPaths
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 toserverless
, which is deprecated in Next 12. - Bundling now uses Next.js's own node-file-trace, giving more predictable results and smaller uploads.
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.
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 yournext.config.js
distDir
in yournext.config.js
node_bundler = "esbuild"
innetlify.toml
external_node_modules
innetlify.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.
4.0.0-rc.1 (2021-12-07)
- 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)
4.0.0-rc.0 (2021-12-06)
- copy public directory output instead of input when using Nx (#856) (d959f82)
- correct root redirect when trailingSlash = false (#879) (3c6b10b)
4.0.0-beta.13 (2021-12-02)
- correct handling of data route JSON files (#864) (adea889)
- move locale detection to netlify redirects (#861) (964637b)
4.0.0-beta.12 (2021-11-30)
4.0.0-beta.11 (2021-11-24)
4.0.0-beta.10 (2021-11-24)
- replace node-fetch with builtin (#834) (6ff3100)
- correct redirect priority and correctly handle ISR pages assets (#826) (6b61643)
- deps: update dependency @netlify/functions to ^0.10.0 (#830) (3256839)
- don't move files to the CDN if they match redirect/rewrite rules (#832) (9e3dd0e)
4.0.0-beta.9 (2021-11-19)
4.0.0-beta.8 (2021-11-19)
- don't move files to CDN if they match middleware (#812) (615c97a)
- move static pages by default (#816) (12ce69e)
4.0.0-beta.7 (2021-11-17)
- deps: update dependency @netlify/functions to ^0.9.0 (#807) (3deec1d)
- ensure path is encoded (#800) (b0f666e)
- use forced catchall for preview mode (#793) (fd7130f)
4.0.0-beta.6 (2021-11-08)
- handle static file glob on Windows (#778) (1cc222a)
- use glob to select files to move (#768) (faeb703)
4.0.0-beta.5 (2021-11-03)
- add missing middleware runtime file (#762) (83378b4)
- deps: update dependency node-fetch to v2.6.6 (#758) (759915b)
- don't force rewrite in preview mode (#761) (c88a504)
4.0.0-beta.4 (2021-10-27)
- correctly resolve zip path (#744) (68b5662)
- deps: update dependency @netlify/functions to ^0.8.0 (#747) (2c87e30)
- exclude electron by default (#746) (887b90a)
4.0.0-beta.3 (2021-10-26)
- support moving static pages out of function bundle (#728) (3da9c77)
- warn if zip is too large, and log the largest files (#730) (9989c0a)
- disable serverless targets (#739) (01fa113)
- ensure stale-while-revalidate headers are not sent (#737) (ef2da0d)
- typo in readme (#731) (bfc016f)
- use nft for ipx bundle (#725) (0321f68)
- use platform-agnostic paths, and add test to be sure (#736) (d448b11)
4.0.0-beta.2 (2021-10-19)
4.0.0-beta.1 (2021-10-15)
4.0.0-beta.0 (2021-10-15)
A complete rewrite of the Essential Next plugin. See the README for details and migration instructions