惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园_首页
博客园 - 【当耐特】
V
Visual Studio Blog
博客园 - 叶小钗
月光博客
月光博客
美团技术团队
J
Java Code Geeks
小众软件
小众软件
Y
Y Combinator Blog
博客园 - Franky
Martin Fowler
Martin Fowler
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Vercel Stopped Deploying. No Alert. No Error. Just Old Code.
Ted · 2026-05-20 · via DEV Community

Ted

I pushed a set of changes to a production site — new page sections, updated prerender content, a comparison table entry. Checked the live site an hour later. Nothing had changed.

Checked Vercel. Project showed healthy. No red deployments, no failure notifications, no emails. The dashboard looked completely normal.

Checked the Deployments tab. Last deployment: 10 hours ago. Not two minutes ago when I pushed. Ten hours.

Every commit had gone to GitHub fine — verified with git log, confirmed the remote had the latest SHA. Vercel simply hadn't picked any of them up.

What I ruled out first

GitHub webhook disconnected. Possible on any project if the GitHub app gets uninstalled or permissions change. But the Vercel project still showed the repo as connected. No indication of a broken webhook in settings.

Root directory misconfigured. There was a nested subfolder in the repo that had previously been used as the build root. That subfolder had been deleted. If Vercel was building from that path, every build would fail with a missing directory error. But the Root Directory setting showed ./ — the repo root. Ruled out.

Build command issue. Nothing had changed in package.json or vite.config.ts. The build had worked before.

Forcing a deploy to see the actual error

With the GitHub webhook not triggering, the only way to get a build log was to force a deploy manually. Used the Vercel CLI:

vercel --prod

Enter fullscreen mode Exit fullscreen mode

Immediate error:

{
  "status": "error",
  "reason": "deploy_failed",
  "message": "Redirect at index 0 cannot define both `permanent` and `statusCode` properties."
}

Enter fullscreen mode Exit fullscreen mode

There it was.

The config conflict

In vercel.json, the first redirect — a www-to-non-www canonical redirect — had been written with both properties:

{
  "source": "/(.*)",
  "has": [{ "type": "host", "value": "www.yourdomain.com" }],
  "destination": "https://yourdomain.com/$1",
  "permanent": true,
  "statusCode": 301
}

Enter fullscreen mode Exit fullscreen mode

permanent: true and statusCode: 301 are redundant — permanent: true already means 301. Vercel's config validator rejects any redirect that specifies both. The fix is one line:

{
  "source": "/(.*)",
  "has": [{ "type": "host", "value": "www.yourdomain.com" }],
  "destination": "https://yourdomain.com/$1",
  "permanent": true
}

Enter fullscreen mode Exit fullscreen mode

Why it was silent

This is the part worth documenting.

When a vercel.json config error fails validation, Vercel doesn't send a failure notification. It doesn't mark the deployment red in the dashboard. It doesn't email you. The GitHub webhook fires, Vercel receives it, validation fails before the build even starts, and the whole thing is discarded quietly. The dashboard keeps showing the last successful deployment as if nothing happened.

The only visible sign is that the "Last deployment" timestamp stops advancing. If you're not actively checking that timestamp, you won't notice.

The failure was introduced with a commit that added statusCode: 301 to an existing redirect that already had permanent: true. The intent was to make the 301 explicit. The effect was to silently break every subsequent deployment until the conflict was found and removed.

Secondary issue: CLI upload was stalling on node_modules

When I first ran vercel --prod to diagnose, the upload stalled at ~150MB and had to be killed. There was no .vercelignore in the repo, so the CLI was uploading node_modules (357MB) along with the source.

Fix:

# .vercelignore
node_modules
dist
.git
*.log

Enter fullscreen mode Exit fullscreen mode

With that in place the upload dropped to ~39MB and completed in seconds.

What to check when Vercel stops auto-deploying

If pushes are going to GitHub but Vercel isn't deploying:

  1. Check the Deployments tab timestamp — if it stopped advancing, builds are failing before they start
  2. Force a deploy via CLI (vercel --prod) — the CLI surfaces the actual error immediately, the dashboard won't
  3. Look at vercel.json first — config validation errors fail silently and are the most common cause of webhook builds being discarded without notification
  4. Check for redundant redirect propertiespermanent and statusCode on the same redirect is the specific conflict Vercel rejects

The GitHub integration kept working. The pushes were fine. The config was wrong. Vercel's silence on the failure is the thing that made it hard to find.