---
title: "Deployment retention policies now preserve active branch deployments"
source_name: "Vercel News"
original_url: "https://vercel.com/changelog/deployment-retention-policies-now-preserve-active-branch-deployments"
canonical_url: "https://www.traeai.com/articles/f3e84cb2-3afb-4899-a308-dd689916a5f9"
content_type: "article"
language: "英文"
score: 5.5
tags: ["Vercel","CI/CD","部署策略","DevOps"]
published_at: "2026-04-17T07:00:00+00:00"
created_at: "2026-04-17T19:18:04.165157+00:00"
---

# Deployment retention policies now preserve active branch deployments

Canonical URL: https://www.traeai.com/articles/f3e84cb2-3afb-4899-a308-dd689916a5f9
Original source: https://vercel.com/changelog/deployment-retention-policies-now-preserve-active-branch-deployments

## Summary

Vercel 更新部署保留策略，现将自动保留活跃分支的部署，避免误删。

## Key Takeaways

- 活跃分支的部署不再被保留策略自动删除
- 提升开发工作流稳定性，防止意外清理
- 适用于所有使用 Vercel 部署预览的项目

## Content

Title: Deployment retention policies now preserve active branch deployments - Vercel – Vercel

URL Source: http://vercel.com/changelog/deployment-retention-policies-now-preserve-active-branch-deployments

Markdown Content:
# Deployment retention policies now preserve active branch deployments - Vercel
[Skip to content](http://vercel.com/changelog/deployment-retention-policies-now-preserve-active-branch-deployments#geist-skip-nav)

[](http://vercel.com/home)

*   Products

    *   ##### [AI Cloud](http://vercel.com/ai)

        *   [AI Gateway One endpoint, all your models](http://vercel.com/ai-gateway)
        *   [Sandbox Isolated, safe code execution](http://vercel.com/sandbox)
        *   [Vercel Agent An agent that knows your stack](http://vercel.com/agent)
        *   [AI SDK The AI Toolkit for TypeScript](https://sdk.vercel.ai/)
        *   [v0 Build applications with AI](https://v0.app/)

    *   ##### Core Platform

        *   [CI/CD Helping teams ship 6× faster](http://vercel.com/products/previews)
        *   [Content Delivery Fast, scalable, and reliable](http://vercel.com/cdn)
        *   [Fluid Compute Servers, in serverless form](http://vercel.com/fluid)
        *   [Workflow Long-running workflows at scale](http://vercel.com/workflows)
        *   [Observability Trace every step](http://vercel.com/products/observability)

    *   ##### [Security](http://vercel.com/security)

        *   [Bot Management Scalable bot protection](http://vercel.com/security/bot-management)
        *   [BotID Invisible CAPTCHA](http://vercel.com/botid)
        *   [Platform Security DDoS Protection, Firewall](http://vercel.com/security)
        *   [Web Application Firewall Granular, custom protection](http://vercel.com/security/web-application-firewall)

*   Resources

    *   ##### Company

        *   [Customers Trusted by the best teams](http://vercel.com/customers)
        *   [Blog The latest posts and changes](http://vercel.com/blog)
        *   [Changelog See what shipped](http://vercel.com/changelog)
        *   [Press Read the latest news](http://vercel.com/press)
        *   [Events Join us at an event](http://vercel.com/events)

    *   ##### Learn

        *   [Docs Vercel documentation](http://vercel.com/docs)
        *   [Academy Linear courses to level up](http://vercel.com/academy)
        *   [Knowledge Base Find help quickly](http://vercel.com/kb)
        *   [Community Join the conversation](https://community.vercel.com/)

    *   ##### Open Source

        *   [Next.js The native Next.js platform](http://vercel.com/frameworks/nextjs)
        *   [Nuxt The progressive web framework](https://nuxt.com/)
        *   [Svelte The web’s efficient UI framework](https://svelte.dev/)
        *   [Turborepo Speed with Enterprise scale](http://vercel.com/solutions/turborepo)

*   Solutions

    *   ##### Use Cases

        *   [AI Apps Deploy at the speed of AI](http://vercel.com/ai)
        *   [Composable Commerce Power storefronts that convert](http://vercel.com/solutions/composable-commerce)
        *   [Marketing Sites Launch campaigns fast](http://vercel.com/solutions/marketing-sites)
        *   [Multi-tenant Platforms Scale apps with one codebase](http://vercel.com/solutions/multi-tenant-saas)
        *   [Web Apps Ship features, not infrastructure](http://vercel.com/solutions/web-apps)

    *   ##### Tools

        *   [Marketplace Extend and automate workflows](http://vercel.com/marketplace)
        *   [Templates Jumpstart app development](http://vercel.com/templates)
        *   [Partner Finder Get help from solution partners](http://vercel.com/partners/solution-partners)

    *   ##### Users

        *   [Platform Engineers Automate away repetition](http://vercel.com/solutions/platform-engineering)
        *   [Design Engineers Deploy for every idea](http://vercel.com/solutions/design-engineering)

*   [Enterprise](http://vercel.com/enterprise)
*   [Pricing](http://vercel.com/pricing)

Ask AI

Ask AI[Log In](http://vercel.com/login)

[Sign Up](http://vercel.com/signup)[Sign Up](http://vercel.com/signup)

[Blog](http://vercel.com/blog)/[Changelog](http://vercel.com/changelog)

# Deployment retention policies now preserve active branch deployments

## Authors

[![Image 1](https://assets.vercel.com/image/upload/f_auto,c_fill,w_48,h_48,q_75/contentful/image/e5382hct74si/1wifUR5lf3AhiZudaRFWTc/408e9f4f4bbe0129ef6f8f708e189bd1/jay-gengelbach-128.jpg)](https://github.com/jaygengelbach)[![Image 2](https://assets.vercel.com/image/upload/f_auto,c_fill,w_48,h_48,q_75/contentful/image/e5382hct74si/6FVQDRHqJHSexdWrorqROv/c8a5eb0c2914a8988fb37ba2d07c9c1a/mehul-kar-128.jpg)](https://twitter.com/mehulkar)[![Image 3](https://assets.vercel.com/image/upload/f_auto,c_fill,w_48,h_48,q_75/contentful/image/e5382hct74si/2azhczhP1zlyLF6W4DOHw3/d7018f9db02fecb8a03601ebbe280fbb/pranav.jpeg)](https://twitter.com/pranav-kanchi)

1 min read

Copy URL

Copied to clipboard!

Apr 17, 2026

Retention policies no longer delete the latest preview deployment for branches with open or unmerged pull requests. Previously, deployments for active branches could be removed if they exceeded the configured retention window.

This means you can safely use shorter retention windows without risking losing active preview deployments. This change applies to all plans.

Your 10 most recent production deployments and any aliased deployments continue to be preserved regardless of retention settings.

Learn more about [Deployment Retention](https://vercel.com/docs/deployment-retention).

**Ready to deploy?**Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.

[Start Deploying](http://vercel.com/new)[Talk to an Expert](http://vercel.com/contact/sales)

**Explore Vercel Enterprise** with an interactive product tour, trial, or a personalized demo.

[Explore Enterprise](http://vercel.com/try-enterprise)

## Get Started

*   [Templates](http://vercel.com/templates)
*   [Supported frameworks](http://vercel.com/docs/frameworks)
*   [Marketplace](http://vercel.com/marketplace)
*   [Domains](http://vercel.com/domains)

## Build

*   [Next.js on Vercel](http://vercel.com/frameworks/nextjs)
*   [Turborepo](http://vercel.com/solutions/turborepo)
*   [v0](https://v0.app/)

## Scale

*   [Content delivery network](http://vercel.com/cdn)
*   [Fluid compute](http://vercel.com/fluid)
*   [CI/CD](http://vercel.com/products/previews)
*   [Observability](http://vercel.com/products/observability)
*   [AI Gateway New](http://vercel.com/ai-gateway)
*   [Vercel Agent New](http://vercel.com/agent)

## Secure

*   [Platform security](http://vercel.com/security)
*   [Web Application Firewall](http://vercel.com/security/web-application-firewall)
*   [Bot management](http://vercel.com/security/bot-management)
*   [BotID](http://vercel.com/botid)
*   [Sandbox New](http://vercel.com/sandbox)

## Resources

*   [Pricing](http://vercel.com/pricing)
*   [Customers](http://vercel.com/customers)
*   [Enterprise](http://vercel.com/enterprise)
*   [Articles](http://vercel.com/i)
*   [Startups](http://vercel.com/startups)
*   [Solution partners](http://vercel.com/partners/solution-partners)

## Learn

*   [Docs](http://vercel.com/docs)
*   [Blog](http://vercel.com/blog)
*   [Changelog](http://vercel.com/changelog)
*   [Knowledge Base](http://vercel.com/kb)
*   [Academy](http://vercel.com/academy)
*   [Community](https://community.vercel.com/)

## Frameworks

*   [Next.js](http://vercel.com/frameworks/nextjs)
*   [Nuxt](http://vercel.com/docs/frameworks/full-stack/nuxt)
*   [Svelte](http://vercel.com/docs/frameworks/full-stack/sveltekit)
*   [Nitro](http://vercel.com/docs/frameworks/backend/nitro)
*   [Turbo](http://vercel.com/solutions/turborepo)

## SDKs

*   [AI SDK](https://ai-sdk.dev/)
*   [Workflow SDK New](https://workflow-sdk.dev/)
*   [Flags SDK](https://flags-sdk.dev/)
*   [Chat SDK](https://chat-sdk.dev/)
*   [Streamdown AI New](https://streamdown.ai/)

## Use Cases

*   [Composable commerce](http://vercel.com/solutions/composable-commerce)
*   [Multi-tenant platforms](http://vercel.com/solutions/multi-tenant-saas)
*   [Web apps](http://vercel.com/solutions/web-apps)
*   [Marketing sites](http://vercel.com/solutions/marketing-sites)
*   [Platform engineers](http://vercel.com/solutions/platform-engineering)
*   [Design engineers](http://vercel.com/solutions/design-engineering)

## Company

*   [About](http://vercel.com/about)
*   [Careers](http://vercel.com/careers)
*   [Help](http://vercel.com/help)
*   [Press](http://vercel.com/press)
*   [Legal](http://vercel.com/legal)
*   [Privacy Policy](http://vercel.com/legal/privacy-policy)

## Community

*   [Open source program](http://vercel.com/open-source-program)
*   [Events](http://vercel.com/events)
*   [Shipped on Vercel](http://vercel.com/shipped)
*   [GitHub](https://github.com/vercel)
*   [LinkedIn](https://linkedin.com/company/vercel)
*   [X](https://x.com/vercel)
*   [YouTube](https://youtube.com/@VercelHQ)

[](http://vercel.com/home)

[Loading status…](https://vercel-status.com/)Select a display theme:system light dark
