feat: backport production hardening and architecture improvements#7
Merged
jeanpaulsio merged 1 commit intomainfrom Mar 30, 2026
Merged
Conversation
Apply battle-tested improvements discovered while using this starter template in production. Addresses bug fixes, production hardening, DX improvements, and architectural refinements. Backend: - Fix validation error serialization (non-JSON-safe ctx fields) - Add 30s PostgreSQL statement timeout to prevent runaway queries - Lower connection pool defaults (10/20 to 5/5) for Render starter plan - Switch from custom Redis rate-limit middleware to slowapi (decorator-based) - Add query helpers: escape_like(), parse_enum_filter() - Bump pagination max limit from 100 to 250 - Move Redis connection to app.state (idiomatic FastAPI pattern) Frontend: - Fix access_token cookie TTL mismatch (24h to 30min to match backend) - Add Sentry error reporting for 5xx API errors in client interceptor - Replace Zustand auth store with React Query (useCurrentUser/useLogout) - Add SSE streaming client utility for LLM/streaming endpoints - Remove withCredentials (unnecessary with Bearer header auth) CI: - Split backend CI into parallel lint + test jobs - Add pip caching for faster backend CI runs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backports battle-tested improvements discovered while using this starter template in production. Covers bug fixes, production hardening, DX improvements, and architectural refinements.
Bug Fixes (Priority 1)
Production Hardening (Priority 2)
Architecture (Priority 3)
DX (Priority 4)
Files Changed
Test plan