Update endpoint URL in package page to use PyPI Stats API for accurate package data retrieval.

This commit is contained in:
Luke Hagar
2025-08-29 16:01:42 -05:00
parent 5550e9b4ba
commit 96a452b19f

View File

@@ -77,7 +77,7 @@
];
function endpointUrl(path: string): string {
return `/api/packages/${encodeURIComponent(data.packageName)}/${path}`;
return `https://pypistats.dev/api/packages/${encodeURIComponent(data.packageName)}/${path}`;
}
// Streaming handled with {#await} blocks below