Fix media signing
This commit is contained in:
@@ -50,6 +50,11 @@ export async function onRequestGet(context: RequestContext) {
|
|||||||
urlPromises.push(
|
urlPromises.push(
|
||||||
aws.sign(
|
aws.sign(
|
||||||
`https://car-crushers.${context.env.R2_ZONE}.r2.cloudflarestorage.com/${attachment}?X-Amz-Expires=1800`,
|
`https://car-crushers.${context.env.R2_ZONE}.r2.cloudflarestorage.com/${attachment}?X-Amz-Expires=1800`,
|
||||||
|
{
|
||||||
|
aws: {
|
||||||
|
signQuery: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user