From 73c8d414ed44bae6382f34035d099a2199ee1705 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Mon, 12 Aug 2024 11:53:46 +0200 Subject: [PATCH] misc: add dd-trace to server externals (#68785) Unfortunately, dd-trace requires modules in some conditional fashion, as some of our users reported, which is the usual pattern for tracing packages. This PR works around this by marking the package to not be compiled explicitly. Fixes #64419 --------- Co-authored-by: Jiachi Liu --- .../05-next-config-js/serverExternalPackages.mdx | 1 + .../04-next-config-js/serverExternalPackages.mdx | 1 + packages/next/src/lib/server-external-packages.json | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/02-app/02-api-reference/05-next-config-js/serverExternalPackages.mdx b/docs/02-app/02-api-reference/05-next-config-js/serverExternalPackages.mdx index 2583ab63d98ce..5bf1b79d02ca3 100644 --- a/docs/02-app/02-api-reference/05-next-config-js/serverExternalPackages.mdx +++ b/docs/02-app/02-api-reference/05-next-config-js/serverExternalPackages.mdx @@ -41,6 +41,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne - `canvas` - `cpu-features` - `cypress` +- `dd-trace` - `eslint` - `express` - `firebase-admin` diff --git a/docs/03-pages/02-api-reference/04-next-config-js/serverExternalPackages.mdx b/docs/03-pages/02-api-reference/04-next-config-js/serverExternalPackages.mdx index dcb66eb0abdeb..8e14ffdeaf279 100644 --- a/docs/03-pages/02-api-reference/04-next-config-js/serverExternalPackages.mdx +++ b/docs/03-pages/02-api-reference/04-next-config-js/serverExternalPackages.mdx @@ -41,6 +41,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne - `canvas` - `cpu-features` - `cypress` +- `dd-trace` - `eslint` - `express` - `firebase-admin` diff --git a/packages/next/src/lib/server-external-packages.json b/packages/next/src/lib/server-external-packages.json index 6dde1971f0667..092b0b32e4c3c 100644 --- a/packages/next/src/lib/server-external-packages.json +++ b/packages/next/src/lib/server-external-packages.json @@ -22,6 +22,7 @@ "canvas", "cpu-features", "cypress", + "dd-trace", "eslint", "express", "firebase-admin",