Skip to content

Commit 9cff94f

Browse files
committed
fix(nextjs): Ensure AI modules remains external for correct runtime instrumentation
1 parent 33d5898 commit 9cff94f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/nextjs/src/config/withSentryConfig.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ export const DEFAULT_SERVER_EXTERNAL_PACKAGES = [
5252
'mysql',
5353
'mysql2',
5454
'knex',
55+
'openai',
56+
'@langchain/openai',
57+
'@langchain/anthropic',
58+
'@langchain/google-genai',
59+
'@langchain/mistralai',
60+
'@langchain/google-vertexai',
61+
'@langchain/groq',
5562
'pg',
5663
'pg-pool',
5764
'@node-redis/client',

0 commit comments

Comments
 (0)