[gemini] feat: add proxy server to fix CORS issue (#512) (#513)
Some checks failed
Deploy Nexus / deploy (push) Failing after 6s

This commit was merged in pull request #513.
This commit is contained in:
2026-03-25 15:36:47 +00:00
parent 83b53d0659
commit 5bd43302d9
7 changed files with 951 additions and 20 deletions

5
app.js
View File

@@ -561,10 +561,7 @@ function drawHeatmap() {
async function updateHeatmap() {
let commits = [];
try {
const res = await fetch(
'http://143.198.27.163:3000/api/v1/repos/Timmy_Foundation/the-nexus/commits?limit=50',
{ headers: { 'Authorization': 'token dc0517a965226b7a0c5ffdd961b1ba26521ac592' } }
);
const res = await fetch('/api/commits');
if (res.ok) commits = await res.json();
} catch { /* network error — use zero baseline */ }