Closed coppea closed 1 month ago
const getImgUrl = (url) => { const customDomain = "https://your-custom-domain.com"; // 替换为你的自定义域名 if (url.startsWith("/file/")) { return ${customDomain}/api${url}; // 使用自定义域名 } else { return url; // 如果不是以"/file/"开头,则返回原始URL } };
${customDomain}/api${url}
我这么设置的,但是不生效
已更新,添加一个CUSTOM_DOMAIN 环境变量就行
CUSTOM_DOMAIN
我这么设置的,但是不生效