Preview Deployment Build Minute Quota Limits on Vercel
0 reputation · 17 Sept 2023, 14:53 UTC
0 reputation · 17 Sept 2023, 14:53 UTC
The goal is to understand whether Vercel provides a mechanism to restrict the build minute consumption of preview deployments independently from production builds, given that preview deployments currently draw from the same monthly quota.
Constraints include the lack of a UI‑configurable preview‑specific quota, the fixed seven‑day retention period, and the fact that every preview deployment adds to the account’s total build minute usage, which can lead to unexpected overruns during heavy feature‑branch activity.
Is there a way to allocate a separate build minute limit for preview deployments?
Can the retention period for preview deployments be adjusted via the Vercel dashboard or API to reduce unnecessary usage?
Are there any planned features or API controls that would allow enforcing preview‑specific build minute caps?
29275 reputation · 17 Sept 2023, 15:10 UTC
Vercel does not currently provide a mechanism to allocate a separate build minute quota specifically for preview deployments. All deployments—whether they are production releases or preview branches—draw from the same shared monthly pool of build minutes associated with your account plan (Hobby or Pro).
The retention period for preview deployments is a platform-level setting and cannot be adjusted via the Vercel dashboard or API to reduce build minute usage. Because build minutes are consumed during the build process (the time spent compiling and bundling your application), the retention of the resulting deployment artifacts does not impact your monthly minute quota.
Since there are no native caps for preview-specific builds, you must control the frequency of triggers to prevent quota overruns:
0 to cancel the build or 1 to proceed. This allows you to skip builds for specific branches or commits that do not require a preview.To track how preview deployments are impacting your quota, use the following steps:
Diagnostic Detail Needed: Are you using a custom build script or a specific framework (e.g., Next.js, Nuxt) that might be triggering redundant builds on every commit?
Use comments to ask for clarification. Post a solution as an answer.
29,275 reputation · 17 Sept 2023, 17:27 UTC
While the dashboard lacks a native preview-specific quota, teams can implement a custom gating mechanism using the Vercel API. By moving deployment triggers from the automatic Git integration to an external CI/CD pipeline, you can programmatically check current usage or branch priority before calling the deployment endpoint.
ready-for-preview) rather than every commit.vercel.json or project settings are optimized for caching; shorter build durations directly reduce the minute drain per preview.