← Back to Dashboard
#9885 Workers & Routes & SPAs - assets not resolving
Recommendation:KEEP OPEN
Difficulty:medium
Reasoning:
Confirmed vite-plugin feature gap; maintainer acknowledged; workaround exists
Suggested Action:
Track for vite-plugin fix
Analysis Report
Issue Review: cloudflare/workers-sdk#9885
Summary
Workers with Vite plugin on routes with subpaths cannot properly serve assets due to misaligned base/directory configurations.
Findings
- Created: 2025-07-08
- Updated: 2026-01-09
- Version: wrangler 4.22, vite-plugin 1.7.5 → wrangler 4.61.0
- Component: vite-plugin, Workers + Assets
- Labels: bug, Workers + Assets, vite-plugin
- Comments: 7
Key Evidence
- Issue is about deploying SPAs to subpaths (e.g.,
/auth/*) with Vite plugin - The assets.directory in generated wrangler config does not align with Vite's base setting
- Maintainer @jamesopstad acknowledged this is a valid issue and reopened #9567
- Community workaround exists using a custom Vite plugin to override assets.directory
- Recent activity (Jan 2026) shows users still experiencing this issue
Recommendation
Status: KEEP OPEN
Reasoning: This is a confirmed feature gap in the Vite plugin. The maintainer has acknowledged the issue and kept it open for a proper solution. Multiple users are affected and using workarounds.
Action: Continue tracking for a proper fix in vite-plugin. The workaround (custom Vite plugin to override assets.directory) can be documented in the interim.
Suggested Comment
N/A - Issue is already being tracked by maintainers.
Notes & Feedback (0)
No notes yet.