fix(api): 🐛 Fix incorrect proxy behaviour

This commit is contained in:
Jesse Wierzbinski 2024-05-06 17:31:12 +00:00
parent afda1f1211
commit 8557867ad8
No known key found for this signature in database
5 changed files with 52 additions and 4 deletions

View file

@ -76,7 +76,7 @@ export const proxyUrl = (url: string | null) => {
const urlAsBase64Url = Buffer.from(url || "").toString("base64url");
return url
? new URL(
`/media/proxy?url=${urlAsBase64Url}`,
`/media/proxy/${urlAsBase64Url}`,
config.http.base_url,
).toString()
: url;