make sure we get proper urls here

i need to add an env var or something tbh
This commit is contained in:
Charlotte Som 2026-03-10 23:52:30 +00:00
parent 89ec573591
commit c7dd1f9a3d

View file

@ -125,7 +125,8 @@ export default {
if ("$type" in record.video && record.video?.$type === "blob") {
const blobCid = record.video.ref.$link;
const filename = await getOrFetchVideo(did, blobCid);
videoUrl = `${new URL(req.url).origin}/user-content/${filename}`;
// TODO: dont hardcode public url base
videoUrl = `https://video.cerulea.blue/user-content/${filename}`;
videoType = record.video.mimeType;
}