bug: git token loop
This commit is contained in:
parent
a97331ae3f
commit
f3746f806c
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export default function ForgejoConnectionsPage() {
|
|||
if (auth.isSignedIn) {
|
||||
fetchConnections();
|
||||
}
|
||||
}, [auth.isSignedIn, auth.getToken]);
|
||||
}, [auth.isSignedIn]);
|
||||
|
||||
const handleDelete = (connection: ForgejoConnection) => {
|
||||
setDeleteError(null);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue