Skip to content
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

wFix: Change default fetch URL to local backend in chat component #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cavit99
Copy link

@cavit99 cavit99 commented Jan 28, 2025

This commit updates the default fetch URL in frontend/components/chat.tsx from https://api.deepclaude.com to http://127.0.0.1:1337.

Reasoning:

The previous default configuration unintentionally directed API requests to the hosted api.deepclaude.com endpoint, even when users were running the frontend locally. This could lead to users inadvertently sending their API keys to the external server if they used the chat interface without realizing this default setting.

This change ensures that by default, the frontend communicates with the local backend server running on http://127.0.0.1:1337, aligning with the expected behavior for users who are self-hosting the application.

Security Improvement:

By pointing to the local backend by default, this commit reduces the risk of users unintentionally exposing their API keys to an external server.

Users who intend to use the managed api.deepclaude.com API can still manually change the fetch URL, but the default is now correctly configured for local development and self-hosting scenarios.

This commit updates the default `fetch` URL in `frontend/components/chat.tsx` from `https://api.deepclaude.com` to `http://127.0.0.1:1337`.

**Reasoning:**

The previous default configuration unintentionally directed API requests to the hosted `api.deepclaude.com` endpoint, even when users were running the frontend locally. This could lead to users inadvertently sending their API keys to the external server if they used the chat interface without realizing this default setting.

This change ensures that by default, the frontend communicates with the local backend server running on `http://127.0.0.1:1337`, aligning with the expected behavior for users who are self-hosting the application.

**Security Improvement:**

By pointing to the local backend by default, this commit reduces the risk of users unintentionally exposing their API keys to an external server.

Users who intend to use the managed `api.deepclaude.com` API can still manually change the fetch URL, but the default is now correctly configured for local development and self-hosting scenarios.
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