MCPcopy Index your code
hub / github.com/anomalyco/opencode / setDefaultServerUrl

Function setDefaultServerUrl

packages/desktop/src/main/server.ts:35–42  ·  view source on GitHub ↗
(url: string | null)

Source from the content-addressed store, hash-verified

33}
34
35export function setDefaultServerUrl(url: string | null) {
36 if (url) {
37 getStore().set(DEFAULT_SERVER_URL_KEY, url)
38 return
39 }
40
41 getStore().delete(DEFAULT_SERVER_URL_KEY)
42}
43
44export function preferAppEnv(userDataPath: string) {
45 const shell = process.platform === "win32" ? null : getUserShell()

Callers 1

index.tsFile · 0.90

Calls 3

getStoreFunction · 0.90
setMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected