Repository navigation
fix(deps): update to nitropack v2.14 + drain dev workers - #37245
Conversation
Architecture Data flow No data-flow sequence changed in this PR. Review ✨ Nothing flagged · reviewed Tip Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion 🪧 More tips
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
@nuxt/kit
@nuxt/nitro-server
@nuxt/nitro-v3-server
nuxt
@nuxt/rsbuild-builder
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/vite-server
@nuxt/webpack-builder
commit: |
2e74c7c to
100b0a8
Compare
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
🔗 Linked issue
📚 Description
this PR bumps nitropack to v2.14.0 (https://github.com/nitrojs/nitro-v2/releases/tag/v2.14.0) for 4.7.
it brings a few things we've been waiting on: failed prerender routes report the pages that link to them (which the CLI prints under each failed route),
Generatedlines respectlogLevel, and error responses don't inherit a cacheablecache-controlfrom aheadersroute rule.v2.14.0 also applies
cacheroute rules per request instead of registering a handler for each cached rule key. that makes the transform innuxt:unify-route-rulesthat renamed those generated handler routes unnecessary, so this PR removes it. the runtime route rules still get unified names.it also enables Nitro's new
devServer.drainoption in dev for both Nitro builders. without it, a request that's still rendering when the server rebuilds gets a 503:with drain, the old worker finishes the requests it already accepted while new ones go to the new worker. Nitro's default timeout is 60s, but I've set it to 10s so an open WebSocket or event stream doesn't stay on stale code (or hold up a restart on Nitro 3, which drains on close too) for a whole minute. it can be configured with
nitro.devServer.drain: