Skip to content

Commit

Permalink
Add @appsignal/nodejs to the external packages list
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
unflxw committed Apr 18, 2024
1 parent 134a59d commit 9825917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = nextConfig

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:

- `@appsignal/nodejs`
- `@aws-sdk/client-s3`
- `@aws-sdk/s3-presigned-post`
- `@blockfrost/blockfrost-js`
Expand Down
1 change: 1 addition & 0 deletions packages/next/src/lib/server-external-packages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
"@appsignal/nodejs",
"@aws-sdk/client-s3",
"@aws-sdk/s3-presigned-post",
"@blockfrost/blockfrost-js",
Expand Down

0 comments on commit 9825917

Please sign in to comment.