Skip to content

Commit a8420ef

Browse files
delorgeclaude
andauthored
fix(nextjs): widen project option type to string | string[] (#21067)
`@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. Closes #21066 Co-authored-by: claude-sonnet-4-6 <noreply@anthropic.com>
1 parent 88a068f commit a8420ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/nextjs/src/config/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export type SentryBuildOptions = {
186186
*
187187
* This value can also be specified via the `SENTRY_PROJECT` environment variable.
188188
*/
189-
project?: string;
189+
project?: string | string[];
190190

191191
/**
192192
* The authentication token to use for all communication with Sentry.

0 commit comments

Comments
 (0)