Skip to content
Codingmedium signalverified

Next.js 16.5 compiles about four times faster in Vercel's benchmark and adds experimental Go routes

Next.js 16.5, released on December 2, 2026, cut cold compile time for Vercel's dashboard from 183 to 44 seconds in the company's own benchmark. Cached functions can now keep their entries across deployments, and a coding agent can upgrade an app on a schedule from GitHub Actions. Go route handlers and a Go-based production server arrive as experiments. The security fixes due on December 15 will ship only on the 16.5.x line.

By Redakcija WebAiRadarPublished 4 min readwritten by a model

Source

Next.js 16.5

Next.js Blog · Original published December 2, 2026

The Next.js team released version 16.5.0 of Vercel's React framework on December 2, 2026. Most of the release is about build speed: in Vercel's benchmark, Turbopack, the framework's Rust-based bundler, compiled the company's dashboard from a cold start about 4.2 times faster than version 16.4.6 did. The release also keeps cached data across redeploys and adds experimental support for writing server routes in Go. Teams still on 16.4 now have a deadline, because the security release scheduled for December 15, 2026, will patch only the 16.5.x line.

Faster builds, measured on Vercel's own dashboard

Vercel measured the gains by compiling its own dashboard on a build machine with 30 cores and 60 GB of memory. According to the company, a cold compile, with no cache, fell from 183 seconds on 16.4.6 to 44 seconds on 16.5.0, and a warm compile went from 12.0 to 4.4 seconds. A full production build from a cold cache took 159 seconds instead of 325, about half the time.

Peak memory during a cold compile dropped from 24.1 GB to 15.0 GB, which Vercel puts at 38% less, and the cache on disk shrank by 14%, from 2.96 GB to 2.56 GB. Across five other Vercel apps, including the Next.js website, the company reports smaller peak-memory savings of 6% to 27%. The team says the work targets developers who run many Next.js servers on one machine at once, for example one per coding agent.

Cache entries that survive a redeploy

Until now, a new deployment effectively reset the cache of every function marked with the 'use cache: remote' directive, because the build or deployment ID was part of each cache key. In 16.5, Turbopack builds the key from the function itself, the code it imports, and the environment values it reads. If none of that has changed, the new deployment reuses the previous one's entries, which still expire and revalidate as before. When Turbopack cannot see every dependency, for instance when code reads process.env[variable], Next.js falls back to a key tied to the deployment.

Three smaller changes affect everyday work. Running next build --analyze produces the bundle report during the production build, so the report matches what ships and no second compile is needed. Turbopack's disk-cache garbage collector, experimental in 16.4, is now on by default, so the cache grows with the size of the app rather than with the number of edits. A single <Link> can now set prefetch="navigation" to load, before any click, cached content that the navigation() API would otherwise hold back.

Go next to TypeScript, as an experiment

With the experimental.goRoutes option enabled and Go 1.24 or later installed, a route.go file can sit in the App Router next to TypeScript routes and handle HTTP requests at that path. During next build, every Go route is compiled into one shared executable, so the production server does not need the Go compiler. In a Vercel benchmark of a production workload over 200 requests, total active CPU time fell from 23.412 seconds with route.ts to 4.546 seconds with route.go, which the company describes as 81% less.

Vercel is also rewriting the next start production server in Go, and the first phase is available behind the --experimental-new-server flag. That server sends requests for Go routes straight to Go instead of passing them through Node.js. In the company's early benchmark of one Go endpoint, throughput rose 4.3 times, p99 latency fell by 59%, and CPU time per request by 37%. Requests that Node.js still serves, such as TypeScript routes and dynamic pages, currently pass through an extra proxy step.

Both features work with next start and output: 'standalone'. How other hosting providers will run Go routes is still open: the team says the Adapter API for native runtimes has not been decided and will be finalized before route.go becomes stable. A separate experimental option, experimental.imgOptSafeMode, processes untrusted images with memory-safe decoders, in separate processes, and inside a Linux seccomp sandbox. Platforms with their own image service, such as Vercel, may ignore it.

Upgrades handed to an agent

The new next upgrade --ci command sets up a GitHub Actions workflow in which a coding agent upgrades the app. During setup, the team picks whether to watch for security advisories only or for every stable release, and chooses Codex or Claude Code as the agent. The agent runs on an OpenAI or Anthropic API key, a Vercel AI Gateway key, or a Claude subscription.

The setup itself arrives as a pull request that adds the workflow and helps store the credentials as repository secrets. Once it is merged, the workflow checks for a new release every day. When a release matches the chosen policy, the agent opens a pull request with the upgrade for a person to review.

„In Next.js 16.5, we're beginning a major shift in that philosophy.“
Next.js team, Native Languages in Next.js, December 2, 2026

Sources

Once a week, in your inbox

The whole week's news, gathered into one email. No ads, no passing your address on, one-click unsubscribe.

The address is used only for this roundup. It is not sold and not passed to anyone.

Related

Codingmedium signal

GitHub Copilot code review can now flag vulnerable dependencies and unusual licenses

GitHub added two optional scans to Copilot code review on December 3, 2026. When a pull request adds or updates a package, Copilot can comment on known vulnerabilities and on licenses outside a common open source set. Both scans are in public preview, are off by default, and count toward the AI credits a review uses. GitHub also added 17 connectors to Copilot and made server-to-server authentication generally available.

GitHubverified

Illustration of a conversation as stacked cards: two earlier turns marked with a green check, then a highlighted Gemini step that removes one item and adds another.
Codingmedium signal

Gemini API lets agents change system instructions and tools mid-conversation without losing the prompt cache

Google's Gemini API can now take new system instructions and tool changes partway through a conversation, through a new step type in the Interactions API. Until now, changing either one invalidated the prompt cache, so the model reprocessed the entire history at extra cost and with extra latency. The new step has the same authority as the original system instruction, and earlier turns stay cached. The feature is in public preview for all Gemini 4 models, has no separate fee, and does not yet cover tools from MCP servers.

Googleverified

GITHUB ACTIONSBlockedpull_request_target in public repositories sin
Codingmedium signal

GitHub Actions now blocks pull_request_target workflows by default in public repositories

Since December 2, 2026, GitHub Actions has blocked workflows triggered by pull_request_target in affected public repositories, unless an event policy explicitly allows them. The trigger runs with the base repository's secrets, so code from a fork can expose them or compromise the build pipeline. Private and internal repositories are not affected, and GitHub Enterprise Server is outside the change. Maintainers who still need the trigger have to allow it explicitly, and can limit the exception to specific workflow files.

GitHubverified