v0.6.9: stop serving match-template crops as hero portraits.

Export and OSS upload require wide Heroes-page cards only; bump cache stamp to wide2 so clients drop polluted squares.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-30 23:24:42 +08:00
co-authored by Cursor
parent ee180f3519
commit a257f96d94
7 changed files with 85 additions and 19 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ function attrIconSrc(key) {
}
function portraitSrc(key) {
return assetUrl(`portrait/${encodeURIComponent(key)}.png?v=wide`);
// Cache-bust if OSS was briefly polluted with 96×96 match crops.
return assetUrl(`portrait/${encodeURIComponent(key)}.png?v=wide2`);
}
function abilityIconSrc(abilityKey) {
+1 -1
View File
@@ -1,5 +1,5 @@
/* Local defaults; production export overwrites via export_relations_site.py. */
var SITE_VERSION = "0.6.8";
var SITE_VERSION = "0.6.9";
var SITE_ORIGIN = "";
var ABILITY_VIDEO_BASE = "";
var STATIC_ASSET_BASE = "";
+5 -5
View File
@@ -43,8 +43,8 @@
}
</script>
<link rel="icon" href="/ui-icon/dota2_logo.png" type="image/png" />
<link rel="stylesheet" href="/style.css?v=0.6.8" />
<script src="/mobile-gate.js?v=0.6.8"></script>
<link rel="stylesheet" href="/style.css?v=0.6.9" />
<script src="/mobile-gate.js?v=0.6.9"></script>
</head>
<body>
<h1 class="sr-only">DOTA2 上分帝</h1>
@@ -233,8 +233,8 @@
</div>
<footer class="heroes-site-foot" id="heroes-site-foot" aria-hidden="true"></footer>
<script src="/config.js?v=0.6.8"></script>
<script src="/router.js?v=0.6.8"></script>
<script src="/app.js?v=0.6.8"></script>
<script src="/config.js?v=0.6.9"></script>
<script src="/router.js?v=0.6.9"></script>
<script src="/app.js?v=0.6.9"></script>
</body>
</html>