feat: support configuring default server URL for desktop (#7363)

This commit is contained in:
Andrew Thal 2026-01-10 08:56:48 -06:00 committed by GitHub
parent a8f23fb548
commit 02b7eb59f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 230 additions and 24 deletions

View file

@ -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({