Skip to content

Commit bbf29f3

Browse files
Merge pull request #41 from terminusdb/dynamic_url
Use dynamic URL for tdb if no tdb server provided
2 parents 33f7eef + 8545444 commit bbf29f3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/main_workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ jobs:
8484
cd packages/tdb-dashboard
8585
echo '
8686
CONNECTION_TYPE="LOCAL"
87-
TERMINUSDB_SERVER=http://127.0.0.1:6363/
8887
TERMINUSDB_KEY=root
8988
FEEDBACK_URL="https://cloud.terminusdb.com/"
9089
BASE_URL="dashboard"

packages/tdb-dashboard/localSettings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const server = localStorage.getItem("terminusdb-server-override") || process.env.TERMINUSDB_SERVER
1+
const server = localStorage.getItem("terminusdb-server-override") || process.env.TERMINUSDB_SERVER || window.location.origin
22

33
//there is no default key
44
//let key= localStorage.getItem("terminusdb-key-override") || process.env.TERMINUSDB_KEY

0 commit comments

Comments
 (0)