fix(stats): align deep route metadata with /data (#31930)
This commit is contained in:
@@ -10,7 +10,11 @@ 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.jpg`) {
|
||||
if (
|
||||
targetUrl.pathname.startsWith(`${dataPath}/_build/`) ||
|
||||
targetUrl.pathname === `${dataPath}/banner.jpg` ||
|
||||
targetUrl.pathname === `${dataPath}/banner.png`
|
||||
) {
|
||||
targetUrl.pathname = targetUrl.pathname.slice(dataPath.length)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user