Debug: show API base URL on login page#32
Merged
gitgrahamdunn merged 1 commit intomainfrom Feb 19, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
Description
getApiBaseUrl()fromfrontend/src/api.tsto expose the resolvedAPI_BASE_URL(fromVITE_API_URLor same-origin fallback).frontend/src/api.tsto print the final/auth/loginURL right before the login request is performed, without changing request behavior.frontend/src/components/LoginPanel.tsxto callgetApiBaseUrl()and render a small debug line beneath the Sign in button showingAPI: <value>.frontend/src/styles.cssfor the debug line to keep it subtle and readable.Testing
npm run buildinfrontend/to validate the TypeScript and production build process, and the build completed successfully.npm run devand captured a screenshot of the login page using a headless browser to verify the debug text renders, which succeeded.Codex Task