mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fix incorrect proxy behaviour
This commit is contained in:
parent
afda1f1211
commit
8557867ad8
5 changed files with 52 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue