MCPcopy
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

1import * as process from 'process'
2
3export function getBaseURL(): string {
4 return process.env['NODE_ENV'] === 'production' ? prodURL() : 'http://localhost:8899';
5}
6
7function prodURL(): string {
8 const location = window.location;

Callers 3

loadDataMethod · 0.90
loadDataMethod · 0.90
loadDataMethod · 0.90

Calls 1

prodURLFunction · 0.85

Tested by

no test coverage detected