MCPcopy
hub / github.com/CaliCastle/cali.so / url

Function url

lib/index.ts:1–8  ·  view source on GitHub ↗
(path = '')

Source from the content-addressed store, hash-verified

1export function url(path = '') {
2 const baseUrl =
3 process.env.NODE_ENV === 'production'
4 ? 'https://cali.so'
5 : 'http://localhost:3000'
6
7 return new URL(path, baseUrl)
8}

Callers 11

RootFunction · 0.90
NotFoundPageFunction · 0.90
sitemapFunction · 0.90
layout.tsxFile · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
UserInfoFunction · 0.90
BlogPageFunction · 0.90
GuestbookFunction · 0.90
AdminCommentsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected