Newshot

原生 lint 与类型检查 Deployment Checks 即将弃用

AI summary

原生 lint 与类型检查 Deployment Checks 即将弃用,请改用 Vercel CI 或自有 CI 工作流继续运行这些任务。新检查已无法添加,现有检查将持续运行至 2026 年 11 月 30 日被移除;已在 GitHub Actions 或 Build Command 中运行的其他 Deployment Checks 和命令不受影响。受影响的检查需在移除前迁移其命令,对于阻断生产发布的检查,还应验证新工作流如何处理失败。

Translation(model translation, not the source's own text)

原生 lint 和 typecheck Deployment Checks 即将弃用。请使用 Vercel CI 或你自己的 CI 工作流继续运行这些任务。

复制标题链接 这意味着什么

这些检查会在 Vercel 上并行于部署构建,运行你仓库的 lint 和 typecheck 任务。新检查已无法再添加。现有检查会继续运行,直到 2026 年 11 月 30 日被移除。

其他已在 GitHub Actions 或你的 Build Command 中运行的 Deployment Checks 和命令不受影响。

复制标题链接 如何迁移

受影响的检查会在你项目的 Build and Deployment 设置中显示为 provider 为 Vercel 的 Lint 或 Typecheck 条目。请在移除前迁移它们的命令。对于阻止生产发布的检查,请确认新工作流如何处理失败。

你也可以在 Build Command 中运行这些命令,不过这可能增加构建时间,并且出错会导致部署构建失败。

试试用这段提示词,让你的编码 agent 帮你把 lint 和 typecheck 任务迁移到 Vercel CI:

为此仓库的 lint 和 typecheck 任务配置 Vercel CI。运行 npx skills use vercel/ci@setup 并按该 skill 的说明配置 Vercel CI 并打开一个 pull request。

配置这些任务并打开一个 pull request 以供评审。

阅读 Vercel CI 文档以了解更多。

Only about 692 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗