Skip to content

Commit 54fb49f

Browse files
duttarnabjv18creator
authored andcommitted
feat: injecting env properties dynamically in admin-ui built #1720
Signed-off-by: Arnab Dutta <[email protected]>
1 parent e23dc1d commit 54fb49f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

admin-ui/env-config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const CONFIG_API_BASE_URL = "https://%(hostname)s/jans-config-api"
2+
const API_BASE_URL = "https://%(hostname)s/jans-config-api/admin-ui"
3+
const BASE_PATH = "/admin/"
4+
5+
window.configApiBaseUrl = CONFIG_API_BASE_URL
6+
window.apiBaseUrl = API_BASE_URL
7+
window.basePath = BASE_PATH

0 commit comments

Comments
 (0)