diff --git a/src/lib/share.ts b/src/lib/share.ts index 5b31afc72..09c909eb2 100644 --- a/src/lib/share.ts +++ b/src/lib/share.ts @@ -6,7 +6,7 @@ export const share = async (taskId: string) => { const res = await proxyFetchPost(`/api/chat/share`, { task_id: taskId, }); - const shareLink = `https://www.eigent.ai/download?share_token=${res.share_token}__${taskId}`; + const shareLink = `${import.meta.env.VITE_USE_LOCAL_PROXY === "true" ? 'eigent://callback' : 'https://www.eigent.ai/download'}?share_token=${res.share_token}__${taskId}`; navigator.clipboard .writeText(shareLink) .then(() => {