Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/MikeChongCan/scylla
/ getBaseURL
Function
getBaseURL
frontend/src/utils.ts:3–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
import
* as process from
'process'
2
3
export
function
getBaseURL(): string {
4
return
process.env[
'NODE_ENV'
] ===
'production'
? prodURL() :
'http://localhost:8899'
;
5
}
6
7
function
prodURL(): string {
8
const
location = window.location;
Callers
3
loadData
Method · 0.90
loadData
Method · 0.90
loadData
Method · 0.90
Calls
1
prodURL
Function · 0.85
Tested by
no test coverage detected