Change8

@cloudflare/vite-plugin@1.47.0

📦 cloudflare-workersView on GitHub →
1 features🐛 1 fixes🔧 4 symbols

Summary

Introduces local-dev observability for `wrangler dev` and the Vite plugin, capturing detailed traces of Worker invocations. Also improves local development recovery by automatically restarting the Workers runtime after crashes.

Migration Steps

  1. Set `X_LOCAL_OBSERVABILITY=true` to enable local-dev observability during testing. It will be on by default in the public release.

✨ New Features

  • Local-dev observability: `wrangler dev` and the Vite plugin now capture a trace for every local Worker invocation, including spans, logs, and `console.*` output. This data can be explored via a new Observability tab in the Local Explorer (Traces and Events views) or a read-only SQL endpoint at `/cdn-cgi/explorer/api/local/observability/query`.

🐛 Bug Fixes

  • Recover local development after the Workers runtime crashes: Miniflare now restarts workerd after post-startup crashes, and the Cloudflare Vite plugin restarts the Vite development server after workerd recovers.

Affected Symbols