Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

v0.129.0

Choose a tag to compare

@lgrammel lgrammel released this 20 Jan 16:55

Changed

  • breaking change: Usage of Node async_hooks has been renamed from node:async_hooks to async_hooks for easier Webpack configuration. To exclude the async_hooks from client-side bundling, you can use the following config for Next.js (next.config.mjs or next.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;
      },
    };