bug: git token loop
This commit is contained in:
parent
a97331ae3f
commit
f3746f806c
|
|
@ -56,7 +56,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
args:
|
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_AUTH_MODE: ${AUTH_MODE}
|
||||||
NEXT_PUBLIC_LOCAL_AUTH_TOKEN: ${LOCAL_AUTH_TOKEN}
|
NEXT_PUBLIC_LOCAL_AUTH_TOKEN: ${LOCAL_AUTH_TOKEN}
|
||||||
# Optional, user-managed env file.
|
# Optional, user-managed env file.
|
||||||
|
|
@ -65,7 +65,7 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- ./frontend/.env
|
- ./frontend/.env
|
||||||
environment:
|
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_AUTH_MODE: ${AUTH_MODE}
|
||||||
NEXT_PUBLIC_LOCAL_AUTH_TOKEN: ${LOCAL_AUTH_TOKEN}
|
NEXT_PUBLIC_LOCAL_AUTH_TOKEN: ${LOCAL_AUTH_TOKEN}
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export default function ForgejoConnectionsPage() {
|
||||||
if (auth.isSignedIn) {
|
if (auth.isSignedIn) {
|
||||||
fetchConnections();
|
fetchConnections();
|
||||||
}
|
}
|
||||||
}, [auth.isSignedIn, auth.getToken]);
|
}, [auth.isSignedIn]);
|
||||||
|
|
||||||
const handleDelete = (connection: ForgejoConnection) => {
|
const handleDelete = (connection: ForgejoConnection) => {
|
||||||
setDeleteError(null);
|
setDeleteError(null);
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ export function ForgejoConnectionForm({
|
||||||
id="base_url"
|
id="base_url"
|
||||||
value={baseUrl}
|
value={baseUrl}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setBaseUrl(e.target.value);
|
setBaseUrl(e.target.value.trimEnd().replace(/\/+$/, ""));
|
||||||
setTestResult(null);
|
setTestResult(null);
|
||||||
}}
|
}}
|
||||||
placeholder="https://git.example.com"
|
placeholder="https://git.example.com"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue