Files
Jimmy LaiandGitHub 82d1b57721 misc: fix serverComponentsExternalPackages usage for experimental.bundlePagesExternals (#57954)
This PR fixes a bug where Next.js would not use the serverComponentsExternalPackages config when opting into the `experimental.bundlePagesExternals` flag.

The fix consists of just adding a check for the externals config.
2023-11-02 23:57:52 +00:00

7 lines
146 B
JavaScript

module.exports = {
experimental: {
bundlePagesExternals: true,
serverComponentsExternalPackages: ['opted-out-external-package'],
},
}