v0.129.0
Changed
-
breaking change: Usage of Node
async_hooks
has been renamed fromnode:async_hooks
toasync_hooks
for easier Webpack configuration. To exclude theasync_hooks
from client-side bundling, you can use the following config for Next.js (next.config.mjs
ornext.config.js
):/** * @type {import('next').NextConfig} */ const nextConfig = { webpack: (config, { isServer }) => { if (isServer) { return config; } config.resolve = config.resolve ?? {}; config.resolve.fallback = config.resolve.fallback ?? {}; // async hooks is not available in the browser: config.resolve.fallback.async_hooks = false; return config; }, };