Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(desktop): use configured server URL in settings window
Richie McIlroy82e0beaa9c2e
diff --git a/apps/desktop/src/routes/(window-chrome)/settings.tsx b/apps/desktop/src/routes/(window-chrome)/settings.tsxindex cbd7ce5c3..bc4392a92 100644--- a/apps/desktop/src/routes/(window-chrome)/settings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings.tsx@@ -23,8 +23,11 @@ import { SignInButton } from "~/components/SignInButton";import { authStore, userProfileStore } from "~/store";import { trackEvent } from "~/utils/analytics";import { createSignInMutation } from "~/utils/auth";-import { clientEnv } from "~/utils/env";-import { apiClient, protectedHeaders } from "~/utils/web-api";+import {+ apiClient,+ getConfiguredServerUrl,+ protectedHeaders,+} from "~/utils/web-api";import IconLucideTerminal from "~icons/lucide/terminal";import IconLucideUserRound from "~icons/lucide/user-round";@@ -54,7 +57,7 @@ function isCachedProfileForUser(async function loadProfileImageObjectUrl(signal: AbortSignal) {const imageUrl = new URL("/api/desktop/user/profile/image",- clientEnv.VITE_SERVER_URL,+ await getConfiguredServerUrl(),).toString();const response = await tauriFetch(imageUrl, {@@ -266,8 +269,8 @@ export default function Settings(props: RouteSectionProps) {});const accountImageUrl = createMemo(() => profileImageObjectUrl());const openDashboard = () => {- void shell.open(- new URL("/dashboard", clientEnv.VITE_SERVER_URL).toString(),+ void getConfiguredServerUrl().then((serverUrl) =>+ shell.open(new URL("/dashboard", serverUrl).toString()),);};const handleProfileClick = () => {