bug: git token loop

This commit is contained in:
null 2026-05-20 00:42:15 -05:00
parent a97331ae3f
commit f3746f806c
3 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ services:
build:
context: ./frontend
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-auto}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8001}
NEXT_PUBLIC_AUTH_MODE: ${AUTH_MODE}
NEXT_PUBLIC_LOCAL_AUTH_TOKEN: ${LOCAL_AUTH_TOKEN}
# Optional, user-managed env file.
@ -65,7 +65,7 @@ services:
env_file:
- ./frontend/.env
environment:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-auto}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8001}
NEXT_PUBLIC_AUTH_MODE: ${AUTH_MODE}
NEXT_PUBLIC_LOCAL_AUTH_TOKEN: ${LOCAL_AUTH_TOKEN}
depends_on:

View File

@ -52,7 +52,7 @@ export default function ForgejoConnectionsPage() {
if (auth.isSignedIn) {
fetchConnections();
}
}, [auth.isSignedIn, auth.getToken]);
}, [auth.isSignedIn]);
const handleDelete = (connection: ForgejoConnection) => {
setDeleteError(null);

View File

@ -150,7 +150,7 @@ export function ForgejoConnectionForm({
id="base_url"
value={baseUrl}
onChange={(e) => {
setBaseUrl(e.target.value);
setBaseUrl(e.target.value.trimEnd().replace(/\/+$/, ""));
setTestResult(null);
}}
placeholder="https://git.example.com"