Skip to content

Commit b0ef2cb

Browse files
committed
Un-hardcodes API URL
1 parent 2f3bca8 commit b0ef2cb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

webview-ui/src/components/chat/CloudTaskButton.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ import { useExtensionState } from "@/context/ExtensionStateContext"
99
import { useCopyToClipboard } from "@/utils/clipboard"
1010
import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, Input, StandardTooltip } from "@/components/ui"
1111

12-
// Use the same URL that getRooCodeApiUrl() from @roo-code/cloud would return
13-
// This matches the PRODUCTION_ROO_CODE_API_URL constant in packages/cloud/src/config.ts
14-
const CLOUD_API_URL = "https://app.roocode.com"
15-
1612
interface CloudTaskButtonProps {
1713
item?: HistoryItem
1814
disabled?: boolean
@@ -21,7 +17,7 @@ interface CloudTaskButtonProps {
2117
export const CloudTaskButton = ({ item, disabled = false }: CloudTaskButtonProps) => {
2218
const [dialogOpen, setDialogOpen] = useState(false)
2319
const { t } = useTranslation()
24-
const { cloudUserInfo } = useExtensionState()
20+
const { cloudUserInfo, cloudApiUrl } = useExtensionState()
2521
const { copyWithFeedback, showCopyFeedback } = useCopyToClipboard()
2622
const qrCodeRef = useRef<HTMLCanvasElement>(null)
2723

0 commit comments

Comments
 (0)