For some reason, when exporting my videos and sending them to backblaze using outName, it creates a folder in my root bucket ("my-bucket-name") called "my-bucket-name".
My key and endpoint don't have "my-bucket-name" in it at all. Code below. Anyone have a fix?
const result = await renderMediaOnLambda({
codec: LAMBDA_CONFIG.CODEC,
functionName: LAMBDA_CONFIG.FUNCTION_NAME,
region: REGION as AwsRegion,
serveUrl: SITE_NAME,
composition: body.id,
inputProps: body.inputProps,
framesPerLambda: LAMBDA_CONFIG.FRAMES_PER_LAMBDA,
downloadBehavior: {
type: "download",
fileName: "video.mp4",
},
maxRetries: LAMBDA_CONFIG.MAX_RETRIES,
everyNthFrame: 1,
crf: compression,
outName: {
bucketName: "my-bucket-name",
key: `exported/${user.id}/video-${Date.now()}.mp4`,
s3OutputProvider: {
endpoint: "https://my-bucket-name.s3.us-east-005.backblazeb2.com",
accessKeyId: process.env.AWS_ACCESS_KEY_ID as string,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY as string,
forcePathStyle: true,
},
},