diff options
| author | Adam <[email protected]> | 2025-10-03 09:19:54 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-10-03 09:19:54 -0500 |
| commit | b622e924b6949e9deef41463bcaeac901d0498f0 (patch) | |
| tree | 3eeb07a1404785573b5b7c807d296fef3354de28 /packages/console/app/src/lib | |
| parent | 8e80b8f2fa199b9565a967c3079ca0ea68e00b9b (diff) | |
| download | opencode-b622e924b6949e9deef41463bcaeac901d0498f0.tar.gz opencode-b622e924b6949e9deef41463bcaeac901d0498f0.zip | |
chore: logging errors
Diffstat (limited to 'packages/console/app/src/lib')
| -rw-r--r-- | packages/console/app/src/lib/github.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/console/app/src/lib/github.ts b/packages/console/app/src/lib/github.ts index 587da34b5..15cbd6cb7 100644 --- a/packages/console/app/src/lib/github.ts +++ b/packages/console/app/src/lib/github.ts @@ -4,8 +4,18 @@ export const github = query(async () => { "use server" try { 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/releases").then((res) => res.json()), + fetch("https://api.github.com/repos/sst/opencode").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/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"), ]) const [release] = releases |
