From c274705af15d059fac43a1d25efbc8f14ed48451 Mon Sep 17 00:00:00 2001 From: Sean Parmelee Date: Fri, 6 Jan 2023 16:24:52 -0600 Subject: [PATCH] fix(nextjs): correct withSentryConfig return type --- packages/nextjs/src/config/withSentryConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/src/config/withSentryConfig.ts b/packages/nextjs/src/config/withSentryConfig.ts index 2b8d12792470..f2668a2ad87e 100644 --- a/packages/nextjs/src/config/withSentryConfig.ts +++ b/packages/nextjs/src/config/withSentryConfig.ts @@ -17,7 +17,7 @@ import type { export function withSentryConfig( exportedUserNextConfig: ExportedNextConfig = {}, userSentryWebpackPluginOptions: Partial = {}, -): NextConfigFunction | NextConfigObject { +): NextConfigFunction { return function (phase: string, defaults: { defaultConfig: NextConfigObject }): NextConfigObject { if (typeof exportedUserNextConfig === 'function') { const userNextConfigObject = exportedUserNextConfig(phase, defaults);