Commit 866bd3a3 authored by Lê Bảo Hồng Đức's avatar Lê Bảo Hồng Đức

fix

parent 9679ec88
......@@ -6,7 +6,8 @@ const LEGACY_MEDIA_HOSTS = new Set([
"vccihcm.vn",
]);
const normalizeOrigin = (value?: string | null) => value?.trim().replace(/\/+$/, "") || "";
const normalizeOrigin = (value?: string | null) =>
value?.trim().replace(/\/+$/, "").replace(/\/api\/v\d+\.\d+$/, "") || "";
const extractUploadPath = (pathname: string) => {
const markers = ["/api/uploads/", "/uploads/", "/images/", "/wp-content/uploads/"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment