-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
Problem
Currently, the Sentry Next.js and Vite plugins automatically create Sentry deploys when building on Vercel, even when the finalize option is set to false. There's no way to prevent deploy creation on Vercel.
Current Behavior
When building on Vercel with Sentry bundler plugins configured like:
{
// ... other options
release: {
finalize: false, // This doesn't prevent deploy creation on Vercel
}
}The plugins still automatically create a Sentry deploy despite finalize: false.
Expected Behavior
There should be a way to completely disable automatic deploy creation on Vercel, similar to how finalize: false works for releases.
Proposed Solution
Add a new option to explicitly control deploy creation on Vercel:
{
release: {
finalize: false,
deploy: {
autoCreate: false, // New option to disable auto-create deploys on Vercel
}
}
}Or alternatively:
{
release: {
finalize: false,
createDeployOnVercel: false, // Direct option
}
}Use Case
This is needed when:
- Managing deploys through a separate CI/CD process
- Using custom deployment strategies
- Wanting to avoid automatic deploy creation for specific environments
- Having more control over when and how deploys are created
Affected Packages
@sentry/nextjs-plugin@sentry/vite-plugin- Potentially other bundler plugins that auto-detect Vercel environment
Environment
Building on Vercel platform with any of the affected Sentry bundler plugins.
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
No status