mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 21:31:53 +08:00
sync
This commit is contained in:
@@ -10,6 +10,7 @@ import { Legal } from "~/component/legal"
|
||||
import { config } from "~/config"
|
||||
|
||||
const getLatestRelease = query(async () => {
|
||||
"use server"
|
||||
const response = await fetch("https://api.github.com/repos/sst/opencode/releases/latest")
|
||||
if (!response.ok) return null
|
||||
const data = await response.json()
|
||||
|
||||
Reference in New Issue
Block a user