MCPcopy Create free account
hub / github.com/Noumena-Network/code / normalizeBaseUrl

Function normalizeBaseUrl

src/utils/platformUrls.ts:7–9  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

5} from './model/providers.js'
6
7function normalizeBaseUrl(baseUrl: string): string {
8 return baseUrl.replace(/\/$/, '')
9}
10
11export function getNoumenaPlatformBaseUrl(): string {
12 const override = process.env.NOUMENA_PLATFORM_BASE_URL?.trim()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected