Skip to content

Debug: show API base URL on login page#32

Merged
gitgrahamdunn merged 1 commit intomainfrom
codex/add-api-base-url-debug-display
Feb 19, 2026
Merged

Debug: show API base URL on login page#32
gitgrahamdunn merged 1 commit intomainfrom
codex/add-api-base-url-debug-display

Conversation

@gitgrahamdunn
Copy link
Copy Markdown
Owner

Motivation

  • Surface the resolved API base URL on the Sign in page to help debug environment configuration when login requests fail.
  • Log the final URL used by the login request to confirm the exact endpoint being called at runtime.

Description

  • Exported getApiBaseUrl() from frontend/src/api.ts to expose the resolved API_BASE_URL (from VITE_API_URL or same-origin fallback).
  • Added a console log in frontend/src/api.ts to print the final /auth/login URL right before the login request is performed, without changing request behavior.
  • Updated frontend/src/components/LoginPanel.tsx to call getApiBaseUrl() and render a small debug line beneath the Sign in button showing API: <value>.
  • Added minimal styling in frontend/src/styles.css for the debug line to keep it subtle and readable.

Testing

  • Ran npm run build in frontend/ to validate the TypeScript and production build process, and the build completed successfully.
  • Started the dev server with npm run dev and captured a screenshot of the login page using a headless browser to verify the debug text renders, which succeeded.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 19, 2026

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

Project Deployment Actions Updated (UTC)
gitplant Ready Ready Preview, Comment Feb 19, 2026 1:18am
gitplant-backend Ready Ready Preview, Comment Feb 19, 2026 1:18am
gitplant-oggy Ready Ready Preview, Comment Feb 19, 2026 1:18am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant