fix(public): remove db dependencies and use traditional api call to get stats

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-27 00:07:25 +01:00
parent 9d43cc49c4
commit d6f5bb7833
9 changed files with 55 additions and 53 deletions

View File

@@ -1,6 +1,10 @@
export async function getGithubRepoInfo() {
const res = await fetch(
'https://api.github.com/repos/Openpanel-dev/openpanel',
);
return res.json();
try {
const res = await fetch(
'https://api.github.com/repos/Openpanel-dev/openpanel',
);
return res.json();
} catch (e) {
return null;
}
}