-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(start): allow request middleware to return Response #6006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(start): allow request middleware to return Response #6006
Conversation
WalkthroughThe PR widens the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected --targets=test:eslint,test:unit,tes... |
❌ Failed | 6m 12s | View ↗ |
nx run-many --target=build --exclude=examples/*... |
✅ Succeeded | 29s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-12-02 21:19:42 UTC
|
@JBR-0100 , the CI failed |
|
Just checked - the tests are passing locally on my end. Could you share what specific test failed in CI? I can take a look and fix it. |
|
Looking at the failures, they're all Solid Start related (builds + e2e tests), while React Start tests passed. My changes are only to the types in start-client-core (allowing Response as a return type), which shouldn't cause runtime failures. The type change itself looks correct - just allows RequestMiddleware to return Response directly. Could this be a build order or caching issue in CI? The tests pass locally on my machine. |

Fixes #5846. This change allows
RequestMiddlewareto return aResponseobject directly, as expected by the issue report. Updated type tests to reflect this change.Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.