Skip to content

[v9] Make Next.js withSentryConfig always return an async function #14303

Closed as not planned
@lforst

Description

@lforst

Description

// TODO(v9): Always return an async function here to allow us to do async things like grabbing a deterministic build ID.
export function withSentryConfig<C>(nextConfig?: C, sentryBuildOptions: SentryBuildOptions = {}): C {
const castNextConfig = (nextConfig as NextConfig) || {};

Looking forward, we need the returned function to be async to be able to grab a build-ID from the Next.js user option, so that we can always have a good release value when Turbopack prod builds ship.

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions