mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 06:50:26 +00:00
feat: support configuring default server URL for desktop (#7363)
This commit is contained in:
parent
a8f23fb548
commit
02b7eb59f8
8 changed files with 230 additions and 24 deletions
|
|
@ -37,6 +37,12 @@ export type Platform = {
|
|||
|
||||
/** Fetch override */
|
||||
fetch?: typeof fetch
|
||||
|
||||
/** Get the configured default server URL (desktop only) */
|
||||
getDefaultServerUrl?(): Promise<string | null>
|
||||
|
||||
/** Set the default server URL to use on app startup (desktop only) */
|
||||
setDefaultServerUrl?(url: string | null): Promise<void>
|
||||
}
|
||||
|
||||
export const { use: usePlatform, provider: PlatformProvider } = createSimpleContext({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue