chore: stats -> data
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { nitro } from "nitro/vite"
|
||||
import { defineConfig, type PluginOption } from "vite"
|
||||
|
||||
export default defineConfig({
|
||||
base: "/stats/",
|
||||
base: "/data/",
|
||||
plugins: [
|
||||
solidStart() as PluginOption,
|
||||
nitro({
|
||||
|
||||
Reference in New Issue
Block a user