fix: image proxy url (#14505)

#### PR Dependency Tree


* **PR #14505** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Improvements**
* Better image-proxy detection to avoid double-proxying already proxied
images.
* Improved runtime image proxy configuration so images load consistently
across deployments.
* More robust image URL handling for optimized image loading and fewer
redundant requests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-02-24 03:29:17 +08:00
committed by GitHub
parent 3e39dbb298
commit 5fb1c11a96
3 changed files with 26 additions and 10 deletions
+8 -4
View File
@@ -60,10 +60,14 @@ export async function run() {
corsOriginCallback(
origin,
finalAllowedOrigins,
blockedOrigin =>
logger.warn(`Blocked CORS request from origin: ${blockedOrigin}`, {
requestPath,
}),
blockedOrigin => {
if (!appendedOrigins.length) {
logger.warn(
`Blocked CORS request from origin: ${blockedOrigin}`,
{ requestPath }
);
}
},
originCallback
);
},