Skip to content

Commit 6f8183d

Browse files
dynamic base url
1 parent b908eaa commit 6f8183d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/assets/js/highlight.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
BASE_URL = "http://localhost/";
1+
// if we are on localhost or 127.0.0.1, use the local explorer
2+
BASE_URL = window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" ? "http://localhost/" : "https://explorer.invariantlabs.ai/";
23

34
function encodeGuardrailURIComponent(content) {
45
/**

0 commit comments

Comments
 (0)