mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
83495447ae
- Add normalizePath utility that collapses consecutive slashes, resolves . and .. segments, and ensures a leading slash - Apply decodeURIComponent + normalizePath before middleware matching and route matching in all entry points (dev server, prod server, Cloudflare Worker entry, codegen entries) - Extract shared middleware codegen module (middleware-codegen.ts) as single source of truth for pattern matching logic, replacing hand-copied inline implementations in index.ts and app-dev-server.ts - Fix default middleware matcher to return true when no matcher is configured, matching Next.js behavior - Fix regex pattern corruption in middleware matcher: patterns containing parentheses or backslashes are now passed to RegExp directly without dot-escaping