Skip to content

Commit 13ebfe4

Browse files
authored
Add @appsignal/nodejs to the external packages list (#64503)
The `@appsignal/nodejs` instrumentation package fails to load in Next.js 14 due to Webpack failing to bundle its Node.js native extension. Adding it to the server components external packages list fixes this issue. Part of appsignal/appsignal-nodejs#1014.
1 parent 792b848 commit 13ebfe4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/02-app/02-api-reference/05-next-config-js/serverComponentsExternalPackages.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = nextConfig
2020

2121
Next.js includes a [short list of popular packages](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/server-external-packages.json) that currently are working on compatibility and automatically opt-ed out:
2222

23+
- `@appsignal/nodejs`
2324
- `@aws-sdk/client-s3`
2425
- `@aws-sdk/s3-presigned-post`
2526
- `@blockfrost/blockfrost-js`

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
"@appsignal/nodejs",
23
"@aws-sdk/client-s3",
34
"@aws-sdk/s3-presigned-post",
45
"@blockfrost/blockfrost-js",

0 commit comments

Comments
 (0)