feat(web): add custom file download button for runs output

This commit is contained in:
BennyKok committed 2023-12-20 23:14:01 +08:00
1 parent 8f67a136c3
commit ee68507755
10 files changed
+54 -30

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
'use server'
import { replaceCDNUrl } from "@/server/resource";
export async function getFileDownloadUrl(file: string) {
return replaceCDNUrl(
`${process.env.SPACES_ENDPOINT}/${process.env.SPACES_BUCKET}/${file}`
);
}