serverExternalPackages
Opt-out specific dependencies from the dependency bundling enabled by `bundlePagesRouterDependencies`.
Opt-out specific dependencies from being included in the automatic bundling of the bundlePagesRouterDependencies option.
These pages will then use native Node.js require to resolve the dependency.
Next.js includes a short list of popular packages that currently are working on compatibility and automatically opt-ed out:
@appsignal/nodejs@aws-sdk/client-s3@aws-sdk/s3-presigned-post@blockfrost/blockfrost-js@highlight-run/node@huggingface/transformers@jpg-store/lucid-cardano@libsql/client@mikro-orm/core@mikro-orm/knex@node-rs/argon2@node-rs/bcrypt@prisma/client@react-pdf/renderer@sentry/profiling-node@sparticuz/chromium@sparticuz/chromium-min@statsig/statsig-node-core@swc/core@xenova/transformersargon2autoprefixeraws-crtbcryptbetter-sqlite3canvaschromadb-default-embedconfigcpu-featurescypressdd-traceeslintexpressfirebase-adminhtmlrewriterimport-in-the-middleisolated-vmjestjsdomkeyvlibsqlmdx-bundlermongodbmongoosenewrelicnext-mdx-remotenext-seonode-cronnode-ptynode-web-audio-apionnxruntime-nodeoslopgplaywrightplaywright-corepostcssprettierprismapuppeteer-corepuppeteerravendbrequire-in-the-middlerimrafsharpshikisqlite3ts-nodets-morphtypescriptvscode-onigurumawebpackwebsocketzeromq