fix(tunnels): update cloudflared download link
This commit is contained in:
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- Settings: fixed the Cloudflare Tunnel download link shown when cloudflared is not installed (thanks to @AyoubAchour).
|
||||||
|
|
||||||
## [1.21.0] - 2026-08-26
|
## [1.21.0] - 2026-08-26
|
||||||
|
|
||||||
- **Chat scrolling rebuilt around your message.** Sending parks your message near the top and the reply streams in below it, gliding smoothly a paragraph at a time. Scrolling up immediately hands you the wheel; the scroll-to-bottom pill carries the model's working status while you're away.
|
- **Chat scrolling rebuilt around your message.** Sending parks your message near the top and the reply streams in below it, gliding smoothly a paragraph at a time. Scrolling up immediately hands you the wheel; the scroll-to-bottom pill carries the model's working status while you're away.
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ const getFallbackInstallCommand = (provider: string, platform = getClientInstall
|
|||||||
if (platform === 'darwin') {
|
if (platform === 'darwin') {
|
||||||
return 'brew install cloudflared';
|
return 'brew install cloudflared';
|
||||||
}
|
}
|
||||||
return 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/';
|
return 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/';
|
||||||
};
|
};
|
||||||
|
|
||||||
const createTunnelDependencyInstallInfo = (provider: string, checkData?: TunnelCheckResponse): TunnelDependencyInstallInfo => {
|
const createTunnelDependencyInstallInfo = (provider: string, checkData?: TunnelCheckResponse): TunnelDependencyInstallInfo => {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Install instructions for your platform:
|
|||||||
Windows: winget install --id Cloudflare.cloudflared
|
Windows: winget install --id Cloudflare.cloudflared
|
||||||
Linux: Download from https://github.com/cloudflare/cloudflared/releases
|
Linux: Download from https://github.com/cloudflare/cloudflared/releases
|
||||||
|
|
||||||
Or visit: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/
|
Or visit: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import {
|
|||||||
const PROVIDER_INSTALL_INFO = {
|
const PROVIDER_INSTALL_INFO = {
|
||||||
[TUNNEL_PROVIDER_CLOUDFLARE]: {
|
[TUNNEL_PROVIDER_CLOUDFLARE]: {
|
||||||
dependency: 'cloudflared',
|
dependency: 'cloudflared',
|
||||||
installUrl: 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/',
|
installUrl: 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/',
|
||||||
commands: {
|
commands: {
|
||||||
darwin: 'brew install cloudflared',
|
darwin: 'brew install cloudflared',
|
||||||
win32: 'winget install --id Cloudflare.cloudflared',
|
win32: 'winget install --id Cloudflare.cloudflared',
|
||||||
linux: 'Download cloudflared from https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/',
|
linux: 'Download cloudflared from https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
[TUNNEL_PROVIDER_NGROK]: {
|
[TUNNEL_PROVIDER_NGROK]: {
|
||||||
|
|||||||
@@ -28,4 +28,13 @@ describe('getTunnelDependencyInstallInfo', () => {
|
|||||||
|
|
||||||
expect(info.installCommand).toBe('brew install cloudflared');
|
expect(info.installCommand).toBe('brew install cloudflared');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('returns the current Linux cloudflared download guidance', () => {
|
||||||
|
const info = getTunnelDependencyInstallInfo(TUNNEL_PROVIDER_CLOUDFLARE, 'linux');
|
||||||
|
const downloadUrl = 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/';
|
||||||
|
|
||||||
|
expect(info.installUrl).toBe(downloadUrl);
|
||||||
|
expect(info.installCommand).toBe(`Download cloudflared from ${downloadUrl}`);
|
||||||
|
expect(info.message).toContain(downloadUrl);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user