fix: many minor fixes

This commit is contained in:
Henry Li
2026-01-25 21:57:57 +08:00
parent b53a2ea5e1
commit 756b396a64
4 changed files with 83 additions and 38 deletions

View File

@@ -34,6 +34,14 @@ export async function GET(
headers,
});
}
if (artifactPath.endsWith(".mp4")) {
return new Response(fs.readFileSync(artifactPath), {
status: 200,
headers: {
"Content-Type": "video/mp4",
},
});
}
return new Response(fs.readFileSync(artifactPath), { status: 200 });
}
}