Repository navigation
fix(web): use app url for MCP endpoint - #33
Merged
Merged
Conversation
|
@akmhatey-ai is attempting to deploy a commit to the gkhngyk's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Welcome to Ansvisor, and thank you for the contribution! Merging now. Nice clean fix — the module-level If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one. |
Merged
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
NEXT_PUBLIC_APP_URLas the canonical base for the Settings API Keys MCP endpoint.Context
Fixes #27.
The settings page was using
window.location.origindirectly for the MCP endpoint, while the rest of the app usesNEXT_PUBLIC_APP_URLfor canonical app URLs.Changes
api-keys-section.tsx.NEXT_PUBLIC_APP_URL.window.location.originas the fallback when the env var is not configured.Testing
corepack yarn eslint src/components/settings/api-keys-section.tsxcorepack yarn typechecknpm run version:checkgit diff --checkgit diff --cached --checkgitleaks protect --staged --no-banner --redactNotes
corepack yarn lintis currently blocked by existing unrelated lint errors outside this change:web/src/app/[locale]/invite/[token]/page.tsx:24web/src/components/layout/sidebar.tsx:33I did not run the dashboard manually because full local app startup requires environment-backed services that are outside this fix.