feat(web): add custom file download button for runs output
This commit is contained in:
@@ -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}`
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user