Skip to content

Commit 9825917

Browse files
committed
Add @appsignal/nodejs to the external packages list
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. Fixes appsignal/appsignal-nodejs#1014.
1 parent 134a59d commit 9825917

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)