fix(stats): use data branding assets

This commit is contained in:
Adam
2026-06-09 11:34:26 -05:00
parent ada5b31bb0
commit f1c31f4eba
9 changed files with 51 additions and 80 deletions

View File

@@ -10,7 +10,7 @@ export async function statsProxy(evt: APIEvent) {
targetUrl.hostname = Resource.App.stage === "production" ? "stats.opencode.ai" : "stats.dev.opencode.ai"
targetUrl.port = ""
if (targetUrl.pathname.startsWith(`${dataPath}/_build/`) || targetUrl.pathname === `${dataPath}/banner.png`) {
if (targetUrl.pathname.startsWith(`${dataPath}/_build/`) || targetUrl.pathname === `${dataPath}/banner.jpg`) {
targetUrl.pathname = targetUrl.pathname.slice(dataPath.length)
}