From c3098da06d3b80046cde6fd462f4ad772ac0a7c4 Mon Sep 17 00:00:00 2001 From: delorge Date: Wed, 20 May 2026 13:20:48 +0100 Subject: [PATCH] fix(nextjs): widen `project` option type to `string | string[]` `@sentry/bundler-plugin-core` accepts `string | string[]` for `project` but `SentryBuildOptions` narrowed it to `string`, causing a TS error when users passed an array even though the value is forwarded verbatim. Co-Authored-By: claude-sonnet-4-6 --- packages/nextjs/src/config/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/src/config/types.ts b/packages/nextjs/src/config/types.ts index 722c3f58f570..80715e9413b0 100644 --- a/packages/nextjs/src/config/types.ts +++ b/packages/nextjs/src/config/types.ts @@ -186,7 +186,7 @@ export type SentryBuildOptions = { * * This value can also be specified via the `SENTRY_PROJECT` environment variable. */ - project?: string; + project?: string | string[]; /** * The authentication token to use for all communication with Sentry.