[gemini] feat: add proxy server to fix CORS issue (#512) (#513)
Some checks failed
Deploy Nexus / deploy (push) Failing after 6s
Some checks failed
Deploy Nexus / deploy (push) Failing after 6s
This commit was merged in pull request #513.
This commit is contained in:
5
app.js
5
app.js
@@ -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 */ }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user