chore: stats -> data

This commit is contained in:
Adam
2026-06-09 09:31:21 -05:00
parent 7c1e61af1e
commit b4a6419215
8 changed files with 52 additions and 23 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ const rangeLabels: Record<UsageRange, string> = {
}
const statsHomeTitle = "OpenCode Stats"
const statsHomeDescription = "OpenCode usage, market share, token cost, and session cost stats."
const statsHomeFallbackUrl = "https://opencode.ai/stats/"
const statsHomeFallbackUrl = "https://opencode.ai/data/"
const statsUnfurlPath = "banner.png"
const statsUnfurlAlt = "OpenCode Stats wordmark on a dark patterned background"
const usageColors = [
@@ -184,8 +184,8 @@ export default function StatsHome() {
function getStatsHomeUrl(base: string, requestUrl: string) {
const url = new URL(base, requestUrl)
if (url.hostname === "stats.opencode.ai") return "https://opencode.ai/stats/"
if (url.hostname === "stats.dev.opencode.ai") return "https://dev.opencode.ai/stats/"
if (url.hostname === "stats.opencode.ai") return "https://opencode.ai/data/"
if (url.hostname === "stats.dev.opencode.ai") return "https://dev.opencode.ai/data/"
return url.toString()
}