chore: logging errors

This commit is contained in:
Adam
2025-10-03 09:19:54 -05:00
parent 8e80b8f2fa
commit b622e924b6

View File

@@ -4,8 +4,18 @@ export const github = query(async () => {
"use server" "use server"
try { try {
const [meta, releases, contributors] = await Promise.all([ const [meta, releases, contributors] = await Promise.all([
fetch("https://api.github.com/repos/sst/opencode").then((res) => res.json()), fetch("https://api.github.com/repos/sst/opencode").then(async (res) => {
fetch("https://api.github.com/repos/sst/opencode/releases").then((res) => res.json()), const text = await res.text()
console.log(text)
const json = JSON.parse(text)
return json
}),
fetch("https://api.github.com/repos/sst/opencode/releases").then(async (res) => {
const text = await res.text()
console.log(text)
const json = JSON.parse(text)
return json
}),
fetch("https://api.github.com/repos/sst/opencode/contributors?per_page=1"), fetch("https://api.github.com/repos/sst/opencode/contributors?per_page=1"),
]) ])
const [release] = releases const [release] = releases