What is the problem?
给 AI 工具新手的一套 Vercel 部署检查流程:用 Codex 辅助解释 build 日志,但由人工确认环境变量、预览环境、域名、账号授权、路由和上线后复查。
Quick solution
Treat this as a Codex tutorial issue. First confirm the environment, inputs, permissions, logs, and delivery boundary. Then use the linked deep guide for the full checklist before changing production code or promising a result.
Read the deep guideDetailed steps
- 先保存日志。复制 Vercel build 日志、失败步骤、commit、分支、项目名和部署链接。不要只截最后一屏。
- 本地复现。运行项目约定的 lint、build 或测试命令。若本地也失败,先在本地修;若本地通过但 Vercel 失败,重点看环境差异。
- 检查 Node 和包管理器。确认 package.json、lockfile、engines、Vercel 构建命令是否一致。不要混用 npm、pnpm 和 yarn。
- 检查环境变量。确认是否有 `.env.example` 或 README 说明。真实密钥不要写进代码或聊天记录,客户项目要由客户确认配置方式。
- 检查路由和静态生成。Next.js 项目常见问题包括动态路由参数、服务端代码、构建期读取数据、缺少 fallback、大小写路径不一致。
- 检查公开面。部署成功后打开首页、关键页面、工具页、sitemap、robots 和 404。草稿、测试页和未审核内容不能出现在公开导航或 sitemap。
Commands or code
请分析这段 Vercel build 日志。
不要直接修改代码。
请列出错误类型、可能原因、低风险验证命令、需要客户确认的账号或环境变量事项。Risk notes
Confirm the real project environment, account permissions, platform rules, and output quality before delivery. Do not ship AI-generated changes without human review, and do not claim indexing, income, deployment success, or ranking improvements without measured evidence.