Skip to content

Commit 03f195d

Browse files
committed
Support configuration of subjects API
1 parent 43732db commit 03f195d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ VITE_DBKEY=opac-de-627
6363
VITE_EXAMPLES=389598534,1830228498,1646529499
6464
# Login Server instance base URL
6565
VITE_LOGIN_SERVER=http://localhost:3004
66+
# Subjects API to query
67+
VITE_SUBJECTS_API=https://coli-conc.gbv.de/subjects-k10plus
6668
# Hardcoded list of allowed user URIs that can perform enrichments in the backend
6769
VITE_ALLOWED_USERS=uri1,uri2
6870
# List of allowed provider IDs (works in addition to VITE_ALLOWED_USERS, i.e. if a user either has one of the

src/client/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export {
88
description,
99
}
1010

11-
export const subjectsApi = "https://coli-conc.gbv.de/subjects-k10plus"
11+
export const subjectsApi = import.meta.env.VITE_SUBJECTS_API || "https://coli-conc.gbv.de/subjects-k10plus"
1212
export const bartocApi = "https://bartoc.org/api/"
1313
export const concordanceApi = "https://coli-conc.gbv.de/api/"
1414
export const showWhenExistsKey = "___SHOW_WHEN_EXISTS___"

0 commit comments

Comments
 (0)