mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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.
7 lines
146 B
JavaScript
7 lines
146 B
JavaScript
module.exports = {
|
|
experimental: {
|
|
bundlePagesExternals: true,
|
|
serverComponentsExternalPackages: ['opted-out-external-package'],
|
|
},
|
|
}
|