MCPcopy Create free account
hub / github.com/msgbyte/tailchat / parseUrlStr

Function parseUrlStr

server/admin/src/client/utils.ts:6–13  ·  view source on GitHub ↗
(originUrl: string)

Source from the content-addressed store, hash-verified

4 * @returns 解析后的url
5 */
6export function parseUrlStr(originUrl: string): string {
7 return String(originUrl).replace(
8 '{BACKEND}',
9 process.env.NODE_ENV === 'development'
10 ? 'http://localhost:11000'
11 : window.location.origin
12 );
13}

Callers 4

fields.tsFile · 0.90
TailchatImage.tsxFile · 0.90
Base.tsxFile · 0.50
Image.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected