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

This commit is contained in:
BennyKok
2023-12-20 23:14:01 +08:00
parent 8f67a136c3
commit ee68507755
10 changed files with 54 additions and 30 deletions
+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}`
);
}