Skip to content

Commit 917c0d8

Browse files
committed
fix: replace download links
1 parent 8adbd8c commit 917c0d8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

website/src/pages/download/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const MAC_ARM = 'macOS (ARM, 64-bit)';
2323
const Releases: FC = (): ReactElement=> {
2424
const [cacheTagName] = useLocalStorageState<string>('global-cache-tag-name');
2525
const tagName = cacheTagName as string || 'v0.8.25';
26-
const DOWN_LINK = 'https://github.com/datafuselabs/databend/releases/download/';
26+
const DOWN_LINK = 'https://repo.databend.rs/databend/';
2727
const [releaseData, setReleaseData] = useState<IRow[]>([
2828
{
2929
name: `databend-${tagName}-aarch64-unknown-linux-musl.tar.gz`,
@@ -88,8 +88,9 @@ const Releases: FC = (): ReactElement=> {
8888
dataIndex: 'osType',
8989
key: 'osType',
9090
render(o: string, record: IRow) {
91-
const {browser_download_url} = record;
92-
return <a className={clsx('button button--secondary', styles.download)} href={`${browser_download_url}`}>Download</a>
91+
console.log(record, 'record')
92+
const {tagName, name} = record;
93+
return <a className={clsx('button button--secondary', styles.download)} href={`${DOWN_LINK}${tagName}/${name}`}>Download</a>
9394
}
9495
}
9596
];
@@ -121,7 +122,8 @@ const Releases: FC = (): ReactElement=> {
121122
item.osType = LINUX_GENERIC_ARM;
122123
}
123124
}
124-
return !item.name?.includes('linux-gnu');
125+
const opName = item.name;
126+
return !opName?.includes('linux-gnu') && !opName?.includes('testsuites');
125127
})
126128
?.sort((a, b)=> {
127129
return a.sort - b.sort;

0 commit comments

Comments
 (0)