开发者
Next.js Sitemap Not Updating? Here's the Real Fix
Next.js Sitemap Not Updating? Here's the Real Fix If your Next.js sitemap is not updating after you publish new content, you're dealing with a cache-coherence bug that almost nobody writes up. It has an exact symptom, a reproducible root cause, and a one-line fix. This is the guide you'll wish you had the moment you notice /sitemap.xml serving fewer entries than your real site. The symptom: your sitemap lags behind your published content The mismatch is impossible to miss once you look. On our own site, /lab lists 11 published posts, yet /sitemap.xml shows only 7. Same database, same deploy, two different answers. If that gap sounds familiar, you're in the right place. You might have checked your afterChange hook, verified that revalidateTag('posts') fires, and even confirmed that the tagged data refreshes — only to find the sitemap still frozen. That's because the problem lives between two cache layers, not inside the data fetch. Why revalidateTag doesn't fix a stale Next.js sitemap The answer lies in what sitemap.ts actually is. According to the Next.js Metadata Files: sitemap.xml documentation, it's a special Route Handler. And like any Route Handler, Next.js caches its rendered output by default. Here's what happened in our own repository (this bug is documented in a comment at the top of app/(frontend)/sitemap.ts because it cost real indexation time): We read content from Payload using unstable_cache , tagged with the collection slug posts . An afterChange hook called revalidateTag('posts') whenever a post was published. That call did work — it invalidated the inner unstable_cache data entry. But the route's statically-rendered outer XML output was never re-run. The frozen route output kept serving the old XML built from the old data, long after the inner cache was refreshed. Two cache layers. Tag-based revalidation busted the inner one, but the outer route handler cache was never told to re-execute. That's the missing piece. The one-line fix: route-level ISR o
AI 资讯
Power up your AI infrastructure! A first look at the Smart Systems Stage agenda at TechCrunch Disrupt 2026
At TechCrunch Disrupt 2026, the Smart Systems Stage will be where energy, infrastructure, and technology collide, covering everything from fusion breakthroughs to the grid strain AI is putting on the entire economy.
科技前沿
Cognyte Sells a Mobile Cell Surveillance Van
Yet another Israeli mass surveillance company : Made by Israeli surveillance company Cognyte, the tech simulates a mobile phone tower, which forces nearby phones to connect to it. That enables cops to keep tabs on any phones in the vicinity whether they’re owned by a suspect in a case or not. Cognyte’s contract with the state of Texas reveals that the simulator, called FalcoNet, can be concealed within the vehicles, hidden in a backpack for on-foot missions or attached to a helicopter. It’s the same technology as the infamous Stingray, one of the original cell-site simulators made by defense giant L3Harris...
AI 资讯
TechCrunch Disrupt 2026’s new Smart Money Stage explores fintech, payments, AI, and everything between
Money has evolved into far more than the cash in your wallet or your bank account. And at TechCrunch Disrupt 2026, we’re devoting an entire stage to that progression.
创业投融资
Meet the judges who will crown Australia’s next breakout startup
TechCrunch Startup Battlefield is coming to Australia — and we're partnering with Stripe to find the country's most exciting early-stage startups.
AI 资讯
Your backstage pass to TechCrunch Disrupt 2026 is waiting
Volunteer at TechCrunch Disrupt 2026 and get a behind-the-scenes look at how one of the world's biggest startup conferences gets built.
安全
Watch Flock Safety CEO Garrett Langley discuss the future of surveillance at TechCrunch Disrupt 2026
Flock Safety sits right at the center of the debate over where the line should be drawn between privacy and public safety. That’s why we’re bringing Flock’s founder and CEO Garrett Langley to the stage to speak about those very issues.
科技前沿
India's first privately-developed rocket reaches orbit on dramatic debut launch
"On the first attempt, reaching orbit, I never thought it was possible."
创业投融资
Applications close in 48 hours — here’s everything Australian founders need to know about Stripe x Startup Battlefield
The window is almost shut. On August 19, eight startups will take the stage at Stripe Tour Sydney in front of investors, global press, and the Australian tech community. One startup walks away with automatic entry into TechCrunch Disrupt in San Francisco — no application, no further competition, a guaranteed spot on the world’s most […]
AI 资讯
No product? No problem. This Disrupt 2026 session shows how to get pre-seed funding with conviction, storytelling
It’s not just you: AI startups are taking in a huge amount of seed funding, and in the process making things harder for anyone looking for funding even at a pre-seed stage. We’ve covered the trend in detail, and at this year’s TechCrunch Disrupt event, we want to help pre-seed founders now being held to seed-stage […]
开发者
Last chance to apply — Startup Battlefield Australia applications close July 6
If you're going to apply for Startup Battlefield Australia, now is the time. Applications close July 6, and once the deadline passes, the opportunity is gone.
创业投融资
Your brand deserves its own stage — Side Events at TechCrunch Disrupt 2026
From October 10-16, host a Side Event and command the room during the week of TechCrunch Disrupt 2026.
AI 资讯
Sundar Pichai faces boos, walkout at Stanford graduation ceremony over Google’s Israel, ICE ties
AI is once again at the heart of a college graduation protest — this time for the technology's use in Google's defense contracts.
AI 资讯
Why enterprise AI will be a major focus at VivaTech 2026
While Silicon Valley continues pushing aggressively into large language models and consumer-facing AI products, many European companies are focused on applying AI to complex systems already embedded into everyday life.
创业投融资
How to apply to Startup Battlefield 2026, what you need ahead of today’s June 8 deadline
Startup Battlefield applications are due tomorrow, so now's the time to put the finishing touches on your submission!
AI 资讯
Why VivaTech 2026 is the place to see Europe’s AI strategy take shape
The global AI race is often framed as a battle between the United States and China. But at VivaTech, Europe is expected to make the case for an entirely different model.
AI 资讯
How Europe’s AI strategy diverges from Silicon Valley’s
The global AI race is often framed as a battle between the United States and China. But at VivaTech, Europe is expected to make the case for an entirely different model.
AI 资讯
How to make the Startup Battlefield Top 20 — and what every company gets regardless
Every founder who applies to Startup Battlefield wants the same thing: the Disrupt Main Stage. Here’s how to get there and why the opportunity starts well before the main stage.
创业投融资
How to apply to Startup Battlefield 2026, what you need ahead of the June 8 deadline
Startup Battlefield applications are due tomorrow, so now's the time to put the finishing touches on your submission!
AI 资讯
Why Paris may be the most important AI city outside Silicon Valley
Europe’s startup ecosystem has matured significantly; its founders are increasingly willing to scale companies domestically instead of immediately looking to relocate to the U.S.