fix(@angular/build): isolate Vite cache per build configuration in dev server#32944
fix(@angular/build): isolate Vite cache per build configuration in dev server#32944maruthang wants to merge 1 commit intoangular:mainfrom
Conversation
…v server Running two ng serve instances for the same project with different configurations (e.g., different locales) caused "504 Outdated Optimize Dep" errors because both instances shared the same Vite optimizer cache directory. The fix includes the build configuration name in the Vite cache directory path, preventing cache conflicts between concurrent dev server instances. Closes angular#31700
There was a problem hiding this comment.
Code Review
This pull request updates the Vite dev server configuration to include the build configuration in the cache path. This change prevents potential conflicts when running multiple dev server instances with different configurations. I have no further feedback to provide.
|
Woah, looks like you've opened a lot issues/PRs recently. While we appreciate contributions from the community, triaging and reviewing a large influx of content in a short time period takes time away from other ongoing projects. As a result, we're closing these issues/PRs to maintain the team's focus. Note that this is not necessarily a rejection of the goals or direction of any of these contributions in particular, so much as a reflection of the team's current capacity and priorities. You are welcome to open a smaller subset of issues/PRs focused on the most important and impactful contributions and we will do our best to prioritize a response as soon as possible. Community contributors should limit themselves to no more than 3 open PRs at a single time. |
Summary
ng serveinstances for the same project with different configurations (e.g., different locales) caused "504 Outdated Optimize Dep" errors<cache>/<project>/vite), so when one instance updated the cache, the other detected stale metadata<cache>/<project>/vite/<configuration>), isolating each instance's cacheCloses #31700
Test plan
ng serveinstances with different configurations concurrently — no 504 errorsng serveinstance still works correctly