TanStackOSS
    router
    fix(start-server-core): guard against undefined ctx.response in HEAD fallback If a fallback GET/ANY handler exits without returning a Response, ctx.response is undefined. Without the guard, handleRedirectResponse passes undefined through and new Response(null, undefined) silently synthesizes a 200 OK, masking the handler bug. Calling throwRouteHandlerError() surfaces the mistake with the same error used everywhere else in the file. Also removes the unsafe cast -- TypeScript narrows the type correctly after the never-returning guard.
    nx affected --targets=test:eslint,test:unit,test:e2e,test:types,test:build,build --parallel=3
Succeeded
CI Pipeline Execution
000132467325
15%

Cache hits

46 of 317 tasks used cache.

91%

Distribution saved time

10m 03s instead of 1h 52m 24s.

Atomizer enabled

155 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools