Skip to content

fix: render backend issues#51

Merged
mr-jones123 merged 1 commit intomainfrom
feat/python-streaming
Nov 1, 2025
Merged

fix: render backend issues#51
mr-jones123 merged 1 commit intomainfrom
feat/python-streaming

Conversation

@mr-jones123
Copy link
Copy Markdown
Owner

This pull request updates the backend API to support deployment on Render and Vercel, and refactors the frontend chat hook to use a consistent endpoint environment variable. The most significant changes are the addition of a health check endpoint, expanded CORS support for Vercel deployments, and simplification of the chat hook configuration.

Backend API improvements:

  • Added a health check endpoint (GET /) to src/api/main.py for Render deployment monitoring.
  • Expanded CORS allow_origins to include all Vercel preview deployments (https://*.vercel.app) in src/api/main.py.

Frontend chat hook refactor:

  • Refactored useStreamingChat in src/hooks/useStreamingChat.ts to use NEXT_PUBLIC_RENDER_ENDPOINT as the default endpoint, falling back to http://localhost:8000. Removed the apiUrl parameter to simplify usage.
  • Updated all internal references in useStreamingChat to use the new endpoint variable instead of the previous apiUrl parameter. [1] [2]

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
xai-research Ready Ready Preview Comment Nov 1, 2025 8:21am
xai-research-4tm2 Ready Ready Preview Comment Nov 1, 2025 8:21am

@mr-jones123 mr-jones123 merged commit 153f290 into main Nov 1, 2025
6 checks passed
@mr-jones123 mr-jones123 deleted the feat/python-streaming branch November 1, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant