Skip to content

Commit c10d258

Browse files
authored
Add @sparticuz/chromium-min to default server externals (#81309)
This package needs to be externalized to have it's wasm dependencies traced properly for node runtime so this adds it to the default list.
1 parent 60ee0dd commit c10d258

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docs/01-app/03-api-reference/05-config/01-next-config-js/serverExternalPackages.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
3434
- `@react-pdf/renderer`
3535
- `@sentry/profiling-node`
3636
- `@sparticuz/chromium`
37+
- `@sparticuz/chromium-min`
3738
- `@swc/core`
3839
- `@xenova/transformers`
3940
- `argon2`

docs/02-pages/04-api-reference/04-config/01-next-config-js/serverExternalPackages.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
3434
- `@react-pdf/renderer`
3535
- `@sentry/profiling-node`
3636
- `@sparticuz/chromium`
37+
- `@sparticuz/chromium-min`
3738
- `@swc/core`
3839
- `@xenova/transformers`
3940
- `argon2`

packages/next/src/lib/server-external-packages.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@react-pdf/renderer",
1616
"@sentry/profiling-node",
1717
"@sparticuz/chromium",
18+
"@sparticuz/chromium-min",
1819
"@swc/core",
1920
"@xenova/transformers",
2021
"argon2",

0 commit comments

Comments
 (0)