Skip to content

feat(nextjs): Add wrapNextjsConfigWithBraintrust as canonical setup utility instead of webpack loader/plugin#2033

Merged
Luca Forstner (lforst) merged 2 commits into
mainfrom
lforst/next-withbraintrust
May 20, 2026
Merged

feat(nextjs): Add wrapNextjsConfigWithBraintrust as canonical setup utility instead of webpack loader/plugin#2033
Luca Forstner (lforst) merged 2 commits into
mainfrom
lforst/next-withbraintrust

Conversation

@lforst
Copy link
Copy Markdown
Member

Adds a new canonical way of setting up auto-instrumentation for Next.js: wrapNextjsConfigWithBraintrust

It takes care of automatically setting up custom loaders depending on nextjs version and bundler used (webpack, turbopack).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somethings never change

@lforst
Copy link
Copy Markdown
Member Author

I wonder how long I can base my career on functions that wrap the Next.js config

@lforst Luca Forstner (lforst) merged commit c0cbd2e into main May 20, 2026
46 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/next-withbraintrust branch May 20, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants