Wake Render backend without blocking frontend - #14
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR changes the Xaman login startup flow so the frontend can “wake” a sleeping Render backend by calling the backend’s public /health endpoint directly from the browser, instead of routing the long warm-up request through the frontend’s same-origin /api/backend proxy (which previously led to frontend 429s). Authenticated/session-bearing requests are intended to remain on the existing proxy.
Changes:
- Documented the new “health-only” browser-visible backend origin and clarified the warm-up/proxy behavior (
README.md). - Added
NEXT_PUBLIC_BACKEND_HEALTH_URLas an optional configuration in the frontend env example (frontend/.env.example). - Updated the Xaman login panel to select a health-base URL (env-configured or Render-specific fallback) for the backend warm-up probe (
frontend/components/XamanLoginPanel.tsx).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Documents the health-only wake-up approach and why it avoids frontend proxy 429s. |
| frontend/.env.example | Adds NEXT_PUBLIC_BACKEND_HEALTH_URL configuration for direct browser health probing. |
| frontend/components/XamanLoginPanel.tsx | Routes the backend warm-up probe through a configurable/cross-origin health base URL instead of always using the proxy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
Verification
README.md,frontend/.env.example,frontend/components/XamanLoginPanel.tsx, andfrontend/lib/backendRequest.ts.release-check.ps1changes.Please do not merge until all checks are green.