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.
Description
sentry-javascript/packages/nextjs/src/config/withSentryConfig.ts
Lines 23 to 25 in f4c5900
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.